@@ -247,7 +247,8 @@ def make_request(self, request_type, url, request_body=None, content_type='appli
247247 self .create_session ()
248248 headers = {
249249 'Content-Type' : content_type ,
250- 'Accept' : 'application/json'
250+ 'Accept' : 'application/json' ,
251+ 'User-Agent' : 'python-quickbooks V3 library'
251252 }
252253
253254 if file_path :
@@ -257,7 +258,7 @@ def make_request(self, request_type, url, request_body=None, content_type='appli
257258 headers .update ({
258259 'Content-Type' : 'multipart/form-data; boundary=%s' % boundary ,
259260 'Accept-Encoding' : 'gzip;q=1.0,deflate;q=0.6,identity;q=0.3' ,
260- 'User-Agent' : 'OAuth gem v0.4.7 ' ,
261+ 'User-Agent' : 'python-quickbooks V3 library ' ,
261262 'Accept' : 'application/json' ,
262263 'Connection' : 'close'
263264 })
@@ -378,6 +379,7 @@ def download_pdf(self, qbbo, item_id):
378379 headers = {
379380 'Content-Type' : 'application/pdf' ,
380381 'Accept' : 'application/pdf, application/json' ,
382+ 'User-Agent' : 'python-quickbooks V3 library'
381383 }
382384
383385 response = self .session .request ("GET" , url , True , self .company_id , headers = headers )
0 commit comments