File tree 1 file changed +3
-2
lines changed
boost/network/protocol/http/server
1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -388,6 +388,7 @@ namespace boost { namespace network { namespace http {
388
388
request_.http_version_major = fusion::get<0 >(version_pair);
389
389
request_.http_version_minor = fusion::get<1 >(version_pair);
390
390
new_start = boost::end (result_range);
391
+ partial_parsed.clear ();
391
392
} else {
392
393
partial_parsed.append (
393
394
boost::begin (result_range),
@@ -409,7 +410,6 @@ namespace boost { namespace network { namespace http {
409
410
partial_parsed.append (
410
411
boost::begin (result_range),
411
412
boost::end (result_range));
412
- trim (partial_parsed);
413
413
parse_headers (partial_parsed, request_.headers );
414
414
new_start = boost::end (result_range);
415
415
thread_pool ().post (
@@ -479,9 +479,10 @@ namespace boost { namespace network { namespace http {
479
479
*(
480
480
+(alnum|(punct-' :' ))
481
481
>> lit (" : " )
482
- >> +(alnum|space|punct)
482
+ >> +(( alnum|space|punct) - ' \r ' - ' \n ' )
483
483
>> lit (" \r\n " )
484
484
)
485
+ >> lit (" \r\n " )
485
486
, container
486
487
);
487
488
}
You can’t perform that action at this time.
0 commit comments