daviddesberg / PHPoAuthLib

PHP 5.3+ oAuth 1/2 Client Library
Other
1.08k stars 454 forks source link

Can't download PDF from QuickBooks API: Accept header is overridden #522

Open marcdejonge opened 7 years ago

marcdejonge commented 7 years ago

See: https://github.com/Lusitanian/PHPoAuthLib/blob/9735bf693d1d985e9173194d282df5d1e0d0c58a/src/OAuth/OAuth1/Service/QuickBooks.php#L117

Here the accept header is overridden, which means that we can never download the PDF file, since that needs the application/pdf accept header. I'll make a merge request to be able to override this.