From f22d37b98032b94fc5b63daff296017a7b611fa8 Mon Sep 17 00:00:00 2001 From: Mauro Sardara Date: Wed, 3 Apr 2019 17:02:21 +0200 Subject: [HICN-165] Http proxy: segment headers and payload in 2 different steps. Change-Id: Ic4f6d1bc693d1170df02b470e8b384b51567acf3 Signed-off-by: Mauro Sardara --- libtransport/src/hicn/transport/http/response.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libtransport') diff --git a/libtransport/src/hicn/transport/http/response.cc b/libtransport/src/hicn/transport/http/response.cc index 0aa9affe8..db7306cca 100644 --- a/libtransport/src/hicn/transport/http/response.cc +++ b/libtransport/src/hicn/transport/http/response.cc @@ -49,7 +49,7 @@ bool HTTPResponse::parseHeaders() { if (it != end()) { std::stringstream ss; - ss.str(std::string(begin(), it)); + ss.str(std::string(begin(), it + 1)); std::string line; getline(ss, line); -- cgit 1.2.3-korg