From: Torsten Dreyer Date: Wed, 18 May 2016 13:14:59 +0000 (+0200) Subject: Add user-agent request header X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=9e1787f1d6420bb23621115402b8ff7d67a48c8e;p=flightgear.git Add user-agent request header --- 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):