The trick is to add another header that specifies the content-type, then it will also work in Chrome/Brave:
r.headers['content-type'] = 'application/apkg'
(This must be put after r.headers['content-disposition'] = ...
).
The trick is to add another header that specifies the content-type, then it will also work in Chrome/Brave:
r.headers['content-type'] = 'application/apkg'
(This must be put after r.headers['content-disposition'] = ...
).