Bug 168155 - Web Inspector: Request headers when copied & pasted should follow HTTP format, colon instead of tab
Summary: Web Inspector: Request headers when copied & pasted should follow HTTP format...
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Web Inspector (show other bugs)
Version: WebKit Nightly Build
Hardware: All All
: P2 Normal
Assignee: Devin Rousso
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2017-02-10 16:47 PST by BJ Burg
Modified: 2017-02-15 22:16 PST (History)
5 users (show)

See Also:


Attachments
Patch (3.36 KB, patch)
2017-02-15 17:27 PST, Devin Rousso
no flags Details | Formatted Diff | Diff
Patch (3.36 KB, patch)
2017-02-15 17:28 PST, Devin Rousso
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description BJ Burg 2017-02-10 16:47:29 PST
From the depths of Radar:

"
When you copy an HTTP header from the resource inspector in Safari, the key and value are separated by a tab, but separating by a colon would be more useful.

* STEPS TO REPRODUCE
1. Safari > Preferences > Advanced > Show Develop
2. Visit a website, then go to Develop > Show Page Resources > Resources > click Resource, select a resource
3. Scroll down to Request Headers, select a header, copy it then paste somewhere

* RESULTS
Actual:  Accept-Encoding	gzip, deflate
Expected: Accept-Encoding: gzip, deflate

The former is the usual form for copied table cells, but the latter is valid HTTP and can be pasted into a curl command line (e.g., curl … -H 'Accept-Encoding: gzip, deflate').
"
Comment 1 BJ Burg 2017-02-10 16:47:38 PST
<rdar://problem/17523913>
Comment 2 Devin Rousso 2017-02-15 17:27:08 PST
Created attachment 301677 [details]
Patch
Comment 3 Devin Rousso 2017-02-15 17:28:48 PST
Created attachment 301678 [details]
Patch
Comment 4 Matt Baker 2017-02-15 21:48:33 PST
Comment on attachment 301678 [details]
Patch

r=me
Comment 5 WebKit Commit Bot 2017-02-15 22:15:58 PST
Comment on attachment 301678 [details]
Patch

Clearing flags on attachment: 301678

Committed r212423: <http://trac.webkit.org/changeset/212423>
Comment 6 WebKit Commit Bot 2017-02-15 22:16:07 PST
All reviewed patches have been landed.  Closing bug.