From 9e1787f1d6420bb23621115402b8ff7d67a48c8e Mon Sep 17 00:00:00 2001 From: Torsten Dreyer Date: Wed, 18 May 2016 15:14:59 +0200 Subject: [PATCH] Add user-agent request header --- scripts/python/terrasync.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/python/terrasync.py b/scripts/python/terrasync.py index ea10e9bc7..aeb195665 100755 --- a/scripts/python/terrasync.py +++ b/scripts/python/terrasync.py @@ -41,7 +41,7 @@ class HTTPGetter: self.requests = [] self.pendingRequests = [] self.httpConnection = HTTPConnection(self.parsedBaseUrl.netloc,80, True) - self.httpRequestHeaders = headers = {'Host':self.parsedBaseUrl.netloc,'Content-Length':0,'Connection':'Keep-Alive'} + self.httpRequestHeaders = headers = {'Host':self.parsedBaseUrl.netloc,'Content-Length':0,'Connection':'Keep-Alive','User-Agent':'FlightGear terrasync.py'} def get(self, httpGetCallback): -- 2.39.5