switch to HTTP1.1
paulfantom committed
Jul 19, 2016 at 02:44 UTC
91bd21036d1a46bcff6f4a65fb019f704b49cc44
1 file changed
+2
-2
python.d/squid.chart.py
+2
-2
@@ -103,8 +103,8 @@ class Service(SocketService):
103
req = self.request.decode()
104
if not req.startswith("GET"):
105
req = "GET " + req
106
- if not req.endswith(" HTTP/1.0\r\n\r\n"):
107
- req += " HTTP/1.0\r\n\r\n"
106
+ if not req.endswith(" HTTP/1.1\r\n\r\n"):
107
+ req += " HTTP/1.1\r\n\r\n"
108
self.request = req.encode()
109
if self._get_data() is not None:
110
return True