Bug 106625 - [BlackBerry] Enable concatenating headers with same field name
Summary: [BlackBerry] Enable concatenating headers with same field name
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Platform (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Mary Wu
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-01-10 19:05 PST by Mary Wu
Modified: 2013-01-11 03:13 PST (History)
8 users (show)

See Also:


Attachments
Patch (3.83 KB, patch)
2013-01-10 19:16 PST, Mary Wu
no flags Details | Formatted Diff | Diff
Patch (3.77 KB, patch)
2013-01-11 00:55 PST, Mary Wu
no flags Details | Formatted Diff | Diff
Patch (3.78 KB, patch)
2013-01-11 02:33 PST, Mary Wu
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Mary Wu 2013-01-10 19:05:30 PST
RFC 2616 says:

   Multiple message-header fields with the same field-name MAY be
   present in a message if and only if the entire field-value for that
   header field is defined as a comma-separated list [i.e., #(values)].
   It MUST be possible to combine the multiple header fields into one
   "field-name: field-value" pair, without changing the semantics of the
   message, by appending each subsequent field-value to the first, each
   separated by a comma. The order in which header fields with the same
   field-name are received is therefore significant to the
   interpretation of the combined field value, and thus a proxy MUST NOT
   change the order of these field values when a message is forwarded.
Comment 1 Mary Wu 2013-01-10 19:16:42 PST
Created attachment 182244 [details]
Patch
Comment 2 Mary Wu 2013-01-11 00:55:38 PST
Created attachment 182286 [details]
Patch
Comment 3 Rob Buis 2013-01-11 01:53:51 PST
Comment on attachment 182286 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=182286&action=review

> Source/WebCore/platform/network/blackberry/NetworkJob.cpp:69
> +static bool isAppendableHeader(String key)

More efficient to use const String & here.
Comment 4 Mary Wu 2013-01-11 02:27:22 PST
(In reply to comment #3)
> (From update of attachment 182286 [details])
> View in context: https://bugs.webkit.org/attachment.cgi?id=182286&action=review
> 
> > Source/WebCore/platform/network/blackberry/NetworkJob.cpp:69
> > +static bool isAppendableHeader(String key)
> 
> More efficient to use const String & here.

nice catch, thanks
Comment 5 Mary Wu 2013-01-11 02:33:16 PST
Created attachment 182303 [details]
Patch
Comment 6 Rob Buis 2013-01-11 02:35:01 PST
Comment on attachment 182303 [details]
Patch

LGTM.
Comment 7 WebKit Review Bot 2013-01-11 03:13:42 PST
Comment on attachment 182303 [details]
Patch

Clearing flags on attachment: 182303

Committed r139423: <http://trac.webkit.org/changeset/139423>
Comment 8 WebKit Review Bot 2013-01-11 03:13:45 PST
All reviewed patches have been landed.  Closing bug.