Filename on GitHub Releases not correctly set in Google Chrome

Google Chrome (75.0.3770.100) on Mac OS X ignores the content-disposition header filename for release downloads. You can reproduce by downloading e.g.

The following happens after I click on Download

-> GET
<- 302, Location, 
text/html; charset=utf-8 …

-> GET
<- 200, Content-Disposition:
attachment; filename=jd-gui-osx-1.6.2.tar, Content-Type:

Although the content disposition header is set correctly the file is still downloaded with name 17ad4180-9b20-11e9-8a7f-1d014f885195 instead of file name jd-gui-osx-1.6.2.tar.
Evrything works fine in Safari and Firefox.
Chrome also emits the following warning in the log
Resource interpreted as Document but transferred with MIME type application/octet-stream: “”.

Cannot reproduce with latest Chrome, same OS and version as you.

1 Like