Add user-agent request header
This commit is contained in:
parent
6921c98933
commit
489be2ce16
1 changed files with 1 additions and 1 deletions
|
@ -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):
|
||||
|
||||
|
|
Loading…
Reference in a new issue