File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed
boost/network/protocol/http/server Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -402,6 +402,7 @@ namespace boost { namespace network { namespace http {
402
402
request_.http_version_major = fusion::get<0 >(version_pair);
403
403
request_.http_version_minor = fusion::get<1 >(version_pair);
404
404
new_start = boost::end (result_range);
405
+ partial_parsed.clear ();
405
406
} else {
406
407
partial_parsed.append (
407
408
boost::begin (result_range),
@@ -423,7 +424,6 @@ namespace boost { namespace network { namespace http {
423
424
partial_parsed.append (
424
425
boost::begin (result_range),
425
426
boost::end (result_range));
426
- trim (partial_parsed);
427
427
parse_headers (partial_parsed, request_.headers );
428
428
new_start = boost::end (result_range);
429
429
thread_pool ().post (
Original file line number Diff line number Diff line change @@ -31,9 +31,10 @@ namespace boost { namespace network { namespace http {
31
31
*(
32
32
+(alnum|(punct-' :' ))
33
33
>> lit (" : " )
34
- >> +(alnum|space|punct)
34
+ >> +(( alnum|space|punct) - ' \r ' - ' \n ' )
35
35
>> lit (" \r\n " )
36
36
)
37
+ >> lit (" \r\n " )
37
38
, container
38
39
);
39
40
}
You can’t perform that action at this time.
0 commit comments