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

http: send connection: close on client error #26467

Closed

Commits on Mar 6, 2019

  1. http: send connection: close when closing conn

    HTTP/1.1 mandates connections which do not support keep-alive and
    close the connection send the connection: close header, see
    https://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.10
    
    This page also provides more information:
    https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Connection
    
    I understand that HTTP/1.1 defaults to keep-alive - and that the
    Connection: close header is required when closing a connection.
    
    This adds the Connection: close header in the 400 and 414
    responses sent on client errors.
    yannh committed Mar 6, 2019
    Configuration menu
    Copy the full SHA
    8de1f8e View commit details
    Browse the repository at this point in the history