From b1b72d2d33f425c503c87dfc65f89ff13737c80f Mon Sep 17 00:00:00 2001 From: orignal Date: Mon, 22 Dec 2014 16:10:32 -0500 Subject: [PATCH] rolled back to HTTP 1.0 since chunked is not implemented --- AddressBook.cpp | 2 +- util.cpp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/AddressBook.cpp b/AddressBook.cpp index 778efe2d..6e61f4b1 100644 --- a/AddressBook.cpp +++ b/AddressBook.cpp @@ -373,7 +373,7 @@ namespace client { std::stringstream request, response; // standard header - request << "GET " << u.path_ << " HTTP/1.1\r\nHost: " << u.host_ + request << "GET " << u.path_ << " HTTP/1.0\r\nHost: " << u.host_ << "\r\nAccept: */*\r\n" << "User-Agent: Wget/1.11.4\r\n" << "Connection: close\r\n"; if (m_Etag.length () > 0) // etag request << HTTP_FIELD_ETAG << ": " << m_Etag << "\r\n"; diff --git a/util.cpp b/util.cpp index 6fc09f31..0a945216 100644 --- a/util.cpp +++ b/util.cpp @@ -239,7 +239,7 @@ namespace http if (site) { // User-Agent is needed to get the server list routerInfo files. - site << "GET " << u.path_ << " HTTP/1.1\r\nHost: " << u.host_ + site << "GET " << u.path_ << " HTTP/1.0\r\nHost: " << u.host_ << "\r\nAccept: */*\r\n" << "User-Agent: Wget/1.11.4\r\n" << "Connection: close\r\n\r\n"; // read response std::string version, statusMessage; @@ -291,7 +291,7 @@ namespace http { i2p::util::http::url u(address); std::stringstream ss; - ss << "GET " << address << " HTTP/1.1" << std::endl; + ss << "GET " << address << " HTTP/1.0" << std::endl; ss << "Host: " << u.host_ << std::endl; ss << "Accept: */*" << std::endl; ss << "User - Agent: Wget / 1.11.4" << std::endl;