[gnome-software/wip/iainl/ubuntu-xenial: 19/56] 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/iainl/ubuntu-xenial: 19/56] HTTP spec says send Host header but have no content
- Date: Thu, 14 Apr 2016 06:31:24 +0000 (UTC)
commit 8c189d4c084eca430db19f25e6ef49c647bbd379
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]