File tree Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change 1
- SUBDIRS = SearchFile
1
+ SUBDIRS = SearchFile BingRequest
2
2
3
3
.PHONY : subdirs $(SUBDIRS ) all
4
4
Original file line number Diff line number Diff line change @@ -43,6 +43,7 @@ using namespace concurrency;
43
43
#else
44
44
#include < boost/asio.hpp>
45
45
#include < boost/bind.hpp>
46
+ #include < boost/algorithm/string.hpp>
46
47
#include < threadpool.h>
47
48
#endif
48
49
@@ -2322,6 +2323,9 @@ namespace web { namespace http
2322
2323
{
2323
2324
auto name = header.substr (0 , colon);
2324
2325
auto value = header.substr (colon+2 , header.size ()-(colon+3 )); // also exclude '\r'
2326
+ boost::algorithm::trim (name);
2327
+ boost::algorithm::trim (value);
2328
+
2325
2329
ctx->m_response .headers ()[name] = value;
2326
2330
2327
2331
if (boost::iequals (name, header_names::transfer_encoding))
You can’t perform that action at this time.
0 commit comments