boldijar / pdfy

Simple, lightweight, PDF viewer for android. Supports assets paths, or internet URLs. Used PdfRenderer API

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Adding custom headers to request

lucaselvaggio opened this issue · comments

It may be possible to modify the downloadPdf() function of the PdfDownloader class in such a way as to have the possibility of adding a parameter that allows adding one or more headers to the request?
Thus obtaining the possibility of downloading from end-points that are protected by the authorization of the Bearer Token.

It may be possible to modify the downloadPdf() function of the PdfDownloader class in such a way as to have the possibility of adding a parameter that allows adding one or more headers to the request? Thus obtaining the possibility of downloading from end-points that are protected by the authorization of the Bearer Token.

Yes, that sounds pretty easy to do. Would love to see a PR 👍