@@ -247,7 +247,8 @@ def make_request(self, request_type, url, request_body=None, content_type='appli
247
247
self .create_session ()
248
248
headers = {
249
249
'Content-Type' : content_type ,
250
- 'Accept' : 'application/json'
250
+ 'Accept' : 'application/json' ,
251
+ 'User-Agent' : 'python-quickbooks V3 library'
251
252
}
252
253
253
254
if file_path :
@@ -257,7 +258,7 @@ def make_request(self, request_type, url, request_body=None, content_type='appli
257
258
headers .update ({
258
259
'Content-Type' : 'multipart/form-data; boundary=%s' % boundary ,
259
260
'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 ' ,
261
262
'Accept' : 'application/json' ,
262
263
'Connection' : 'close'
263
264
})
@@ -378,6 +379,7 @@ def download_pdf(self, qbbo, item_id):
378
379
headers = {
379
380
'Content-Type' : 'application/pdf' ,
380
381
'Accept' : 'application/pdf, application/json' ,
382
+ 'User-Agent' : 'python-quickbooks V3 library'
381
383
}
382
384
383
385
response = self .session .request ("GET" , url , True , self .company_id , headers = headers )
0 commit comments