You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Dec 11, 2019. It is now read-only.
Refactored the server into many smaller functions to make it easier to
understand all the different code paths.
- added a Content-Disposition header, which tells the browser the
file's name, since we use urls like http://localhost:port/0 <-- no
human-readable file name
- Server returns valid HTML documents (with all the required tags) now.
- Return 204 status for OPTIONS request
- reduce access-control-max-age to chromium max of 600s
- respond to OPTIONS requests that lack
'access-control-request-headers' (before they were treated as GET)
- return '405 invalid verb' for all other verbs
For: brave/browser-laptop#6737
We can fix this with a 'Content-Disposition' header in the WebTorrent server.
In the past, I've found just setting a download attribute on the link like <a href='#' download='filename.mp4'> was sufficient to control the filename in the absence of a 'Content-Disposition' header. However, Chrome stopped obeying the download attribute for links on other domains (CORS).
Now the 'Content-Disposition' header is the only way to control it then.
Did you search for similar issues before submitting this one?
Yes
Describe the issue you encountered:
Torrent Save file gives 0 as default file name
Expected behavior:
Should give the actual file name
Platform (Win7, 8, 10? macOS? Linux distro?):
Windows 10 x64
Brave Version (revision SHA):
Brave 0.13.0
rev c60b783
Steps to reproduce:
QA Steps :
Screenshot if needed:

Any related issues:
cc: @bbondy
The text was updated successfully, but these errors were encountered: