Details
Description
When using the 'addValue:forHTTPHeaderField', it incrementally appends the key-value using a comma.
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
// https://tools.ietf.org/html/rfc2616#page-32
May be we should use 'setValue: forHTTPHeaderField', which avoids the issue of cookies with comma delimiter, instead semi-colon delimiter.
Related GH issue: https://github.com/couchbase/couchbase-lite-ios/issues/2828
Validate fix using proxy app?
Attachments
Issue Links
- is cloned by
-
CBL-2184 [Backport] Add cookie using setValue instead of addValue
-
- Closed
-
Activity
Field | Original Value | New Value |
---|---|---|
Rank | Ranked higher |
Assignee | The Lite [ cbgto ] | Jayahari Vavachan [ jayahari.vavachan ] |
Story Points | 3 | 2 |
Sprint | Pasin 47 [ 1597 ] |
Rank | Ranked lower |
Rank | Ranked higher |
Status | Open [ 1 ] | In Progress [ 3 ] |
Status | In Progress [ 3 ] | In Review [ 10107 ] |
Resolution | Fixed [ 1 ] | |
Status | In Review [ 10107 ] | Resolved [ 5 ] |
Status | Resolved [ 5 ] | Closed [ 6 ] |
Link | This issue causes CBSE-10389 [ CBSE-10389 ] |
Link | This issue relates to CBL-2183 [ CBL-2183 ] |
Link | This issue relates to CBL-2183 [ CBL-2183 ] |
Resolution | Fixed [ 1 ] | |
Status | Closed [ 6 ] | Reopened [ 4 ] |
Affects Version/s | 2.8.0 [ 16189 ] | |
Affects Version/s | Lithium [ 16190 ] |
Resolution | Fixed [ 1 ] | |
Status | Reopened [ 4 ] | Resolved [ 5 ] |
Status | Resolved [ 5 ] | Closed [ 6 ] |
Link | This issue causes CBSE-10813 [ CBSE-10813 ] |
For easy tracking listing the fix:
PR: https://github.com/couchbase/couchbase-lite-ios/pull/2841
master: https://github.com/couchbase/couchbase-lite-ios/commit/02af6e22c800806f05125f5d54210e1a5dc2fb80
hydrogen/release: https://github.com/couchbase/couchbase-lite-ios/commit/de889b0a8ba4c642242186459f0a7c80977def0c