Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(32)

Issue 1564913002: HeaderValues: Handle all parameters without values. (Closed)

Created:
4 years, 11 months ago by butlermatt
Modified:
4 years, 11 months ago
Reviewers:
Søren Gjesse
CC:
reviews_dartlang.org
Base URL:
https://github.com/dart-lang/sdk.git@master
Target Ref:
refs/heads/master
Visibility:
Public.

Description

HeaderValues: Handle all parameters without values. Some cases, an HttpHeader Value may contain all parameters and no values. This changes ensures that such a header is parsed, that it is handled correctly. This was noticed when parsing the following header for websockets: Sec-WebSocket-Extensions: permessage-deflate; client_no_context_takeover; client_max_window_bits; server_no_context_takeover It was parsing with the value permessage-deflate (correct) with parameters: {'client_no_context_takeover;' : 'client_max_window_bits', 'server_no_context_takeover' : null } With this patch it now properly shows the parameters as: {'client_no_context_takeover' : null, 'client_max_window_bits' : null, 'server_no_context_takeover' : null } I've also included a test for this as well. BUG= Patch by Matthew Butler <butler.matthew@gmail.com>;. Committed: https://github.com/dart-lang/sdk/commit/eaf75a100e8fe547c3ad60f8618f15fbf6a3a9dc

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+3 lines, -0 lines) Patch
M sdk/lib/io/http_headers.dart View 1 chunk +1 line, -0 lines 0 comments Download
M tests/standalone/io/http_headers_test.dart View 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 7 (4 generated)
butlermatt
While diagnosing Websocket compression issues, I became aware of an issue with the HeaderValue parsing. ...
4 years, 11 months ago (2016-01-06 20:48:40 UTC) #3
Søren Gjesse
Committed patchset #1 (id:1) manually as eaf75a100e8fe547c3ad60f8618f15fbf6a3a9dc (presubmit successful).
4 years, 11 months ago (2016-01-07 08:04:02 UTC) #6
Søren Gjesse
4 years, 11 months ago (2016-01-07 08:04:15 UTC) #7
Message was sent while issue was closed.
LGTM, thanks.

Powered by Google App Engine
This is Rietveld 408576698