Permalink
Browse files

http, bugfix: fix capitalization of http header 'host'.

  • Loading branch information...
xicilion committed May 9, 2018
1 parent 7dd3d90 commit 4c47e5659f38ab117ec17c1a8d0cd38469c7e6b7
Showing with 1 addition and 1 deletion.
  1. +1 −1 fibjs/src/http/HttpClient.cpp
@@ -405,7 +405,7 @@ result_t HttpClient::request(exlib::string method, exlib::string url, SeekableSt
u->get_path(path);
pThis->m_req->set_address(path);
pThis->m_req->addHeader("host", u->m_host);
pThis->m_req->addHeader("Host", u->m_host);
pThis->m_req->setHeader("Accept-Encoding", "gzip,deflate");
pThis->m_hc->get_cookie(pThis->m_url, cookie);
if (cookie.length() > 0)

0 comments on commit 4c47e56

Please sign in to comment.