1
0
Fork 0

Add user-agent request header

This commit is contained in:
Torsten Dreyer 2016-05-18 15:14:59 +02:00
parent 6921c98933
commit 489be2ce16

View file

@ -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):