From 4b9caee604c4456512e9d4d76ec1be865a83ac24 Mon Sep 17 00:00:00 2001 From: Thulinma <jaron@vietors.com> Date: Wed, 16 Feb 2011 23:47:51 +0100 Subject: [PATCH] Metadata fix, protocol dix --- Connector_HTTP/main.cpp | 2 +- util/http_parser.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Connector_HTTP/main.cpp b/Connector_HTTP/main.cpp index 4f436a24..84e7e266 100644 --- a/Connector_HTTP/main.cpp +++ b/Connector_HTTP/main.cpp @@ -206,7 +206,7 @@ int mainHandler(int CONN_fd){ FlashBuf.append(tag->data,tag->len); } else { FlashMeta = ""; - FlashMeta.append(tag->data,tag->len); + FlashMeta.append(tag->data+11,tag->len-15); if( !Flash_ManifestSent ) { HTTP_S.Clean(); HTTP_S.SetHeader("Content-Type","text/xml"); diff --git a/util/http_parser.cpp b/util/http_parser.cpp index f00cb2dd..df866b1a 100644 --- a/util/http_parser.cpp +++ b/util/http_parser.cpp @@ -35,7 +35,7 @@ void HTTPReader::Clean(){ seenReq = false; method = "GET"; url = "/"; - protocol = "HTTP/1.0"; + protocol = "HTTP/1.1"; length = 0; HTTPbuffer = ""; headers.erase(headers.begin(), headers.end());