Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor http server; support content-disposition #1039

Merged
merged 1 commit into from Feb 10, 2017
Merged
Commits on Feb 10, 2017
  1. Refactor http server; support content-disposition

    feross committed Feb 10, 2017
    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
You can’t perform that action at this time.