[gnome-software/wip/temp/ubuntu-xenial-rebased-corrected: 68/331] HTTP spec says send Host header but have no content
- From: William Hua <williamhua src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software/wip/temp/ubuntu-xenial-rebased-corrected: 68/331] HTTP spec says send Host header but have no content
- Date: Wed, 4 May 2016 14:04:13 +0000 (UTC)
commit a14eebdfb7282ef191bc7ef2aca66eea1266d4ea
Author: Robert Ancell <robert ancell canonical com>
Date: Tue Feb 2 14:13:54 2016 +1300
HTTP spec says send Host header but have no content
src/plugins/gs-plugin-snappy.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/plugins/gs-plugin-snappy.c b/src/plugins/gs-plugin-snappy.c
index 66f80a3..23a8a16 100644
--- a/src/plugins/gs-plugin-snappy.c
+++ b/src/plugins/gs-plugin-snappy.c
@@ -117,7 +117,7 @@ send_snapd_request (GSocket *socket,
request = g_string_new ("");
g_string_append_printf (request, "%s %s HTTP/1.1\r\n", method, path);
- g_string_append (request, "Host: gnome-software\r\n");
+ g_string_append (request, "Host:\r\n");
if (content)
g_string_append_printf (request, "Content-Length: %zi\r\n", strlen (content));
g_string_append (request, "\r\n");
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]