diff options
author | Riccardo Spagni <ric@spagni.net> | 2017-08-07 15:06:45 +0200 |
---|---|---|
committer | Riccardo Spagni <ric@spagni.net> | 2017-08-07 15:06:45 +0200 |
commit | 6244c782de78e3052927416d156ce530c10844ce (patch) | |
tree | 336f72826a08d30fbb4d09c92308589c1b459c9b /contrib/epee/include/net/http_protocol_handler.inl | |
parent | Merge pull request #2153 (diff) | |
parent | epee: don't send the body of the response to a HEAD HTTP request (diff) | |
download | monero-6244c782de78e3052927416d156ce530c10844ce.tar.xz |
Merge pull request #2151
13a8d64f epee: don't send the body of the response to a HEAD HTTP request (Guillaume LE VAILLANT)
Diffstat (limited to 'contrib/epee/include/net/http_protocol_handler.inl')
-rw-r--r-- | contrib/epee/include/net/http_protocol_handler.inl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/epee/include/net/http_protocol_handler.inl b/contrib/epee/include/net/http_protocol_handler.inl index d9eca2479..c92a13bcc 100644 --- a/contrib/epee/include/net/http_protocol_handler.inl +++ b/contrib/epee/include/net/http_protocol_handler.inl @@ -547,7 +547,7 @@ namespace net_utils LOG_PRINT_L3("HTTP_RESPONSE_HEAD: << \r\n" << response_data); m_psnd_hndlr->do_send((void*)response_data.data(), response_data.size()); - if(response.m_body.size()) + if(response.m_body.size() && (query_info.m_http_method != http::http_method_head)) m_psnd_hndlr->do_send((void*)response.m_body.data(), response.m_body.size()); return res; } |