From 58649f9916c909450a78a48d8089068270c01f4e Mon Sep 17 00:00:00 2001 From: Gabor Apati-Nagy Date: Wed, 16 Jul 2014 17:37:40 +0100 Subject: [PATCH] CA-140647: Customer is not getting the list of updates when ever they select the "Check for Updates" option from the tools menu within Xencenter. -Added 'Host:' to HTTP headers for all the HTTP GET and PUT requests sent by XenCenter. This change will presumably fix network issues occurring when going through certain corporate firewalls/proxies. Signed-off-by: Gabor Apati-Nagy --- XenModel/XenAPI/HTTP.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/XenModel/XenAPI/HTTP.cs b/XenModel/XenAPI/HTTP.cs index 0de4e62b3..6d1643f6d 100644 --- a/XenModel/XenAPI/HTTP.cs +++ b/XenModel/XenAPI/HTTP.cs @@ -413,13 +413,15 @@ namespace XenAPI { return DO_HTTP(uri, proxy, false, timeout_ms, string.Format("PUT {0} HTTP/1.0", uri.PathAndQuery), + string.Format("Host: {0}", uri.Host), string.Format("Content-Length: {0}", ContentLength)); } public static Stream GET(Uri uri, IWebProxy proxy, int timeout_ms) { return DO_HTTP(uri, proxy, false, timeout_ms, - string.Format("GET {0} HTTP/1.0", uri.PathAndQuery)); + string.Format("GET {0} HTTP/1.0", uri.PathAndQuery), + string.Format("Host: {0}", uri.Host)); } ///