]> git.mxchange.org Git - flightgear.git/commitdiff
Add user-agent request header
authorTorsten Dreyer <torsten@t3r.de>
Wed, 18 May 2016 13:14:59 +0000 (15:14 +0200)
committerRoland Haeder <roland@mxchange.org>
Thu, 22 Sep 2016 21:27:35 +0000 (23:27 +0200)
scripts/python/terrasync.py

index ea10e9bc701f6a8ebc6f4b78e4fcab1b6922d66a..aeb19566509e30431ebb43feb50dbb69d28f4906 100755 (executable)
@@ -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):