Files
sdk/tests/standalone/io
Søren Gjesse eaf75a100e 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>.

Review URL: https://codereview.chromium.org/1564913002 .
2016-01-07 09:03:53 +01:00
..
2015-05-27 15:31:30 +02:00
2015-06-24 09:25:17 +02:00
2014-11-26 08:53:07 +00:00
2013-10-30 14:50:22 +00:00
2014-01-14 09:01:53 +00:00
2014-06-10 07:13:52 +00:00
2013-10-25 10:30:34 +00:00