File tree Expand file tree Collapse file tree 1 file changed +3
-9
lines changed
Release/src/http/listener Expand file tree Collapse file tree 1 file changed +3
-9
lines changed Original file line number Diff line number Diff line change 17
17
* =+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+
18
18
*/
19
19
#include " stdafx.h"
20
+ #include < boost/algorithm/string/find.hpp>
20
21
#include " cpprest/http_helpers.h"
21
22
#include " cpprest/http_server_api.h"
22
23
#include " cpprest/http_server.h"
@@ -194,19 +195,12 @@ void connection::handle_headers()
194
195
// check if the client has requested we close the connection
195
196
if (m_request.headers ().match (U (" connection" ), name))
196
197
{
197
- if (boost::iequals (name, U (" close" )))
198
- {
199
- m_close = true ;
200
- }
198
+ m_close = boost::iequals (name, U (" close" ));
201
199
}
202
200
203
201
if (m_request.headers ().match (U (" transfer-encoding" ), name))
204
202
{
205
- // This is not quite right. See details in TFS#549211
206
- if (!boost::iequals (name, U (" identity" )))
207
- {
208
- m_chunked = true ;
209
- }
203
+ m_chunked = boost::ifind_first (name, U (" chunked" ));
210
204
}
211
205
212
206
Concurrency::streams::producer_consumer_buffer<uint8_t > buf;
You can’t perform that action at this time.
0 commit comments