Chromium Code Reviews
DescriptionHeaderValues: 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 #
Messages
Total messages: 7 (4 generated)
|
||||||||||||||||||||||||||||