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

Do not set Content-Type for DELETE requests #132

Closed
wants to merge 1 commit into from

Commits on Jul 27, 2015

  1. Do not set Content-Type for DELETE requests

    DELETE requests, like GET requests, should not have a Content-Type
    header as there will not be a request body. However, rack-test attempts
    to set a Content-Type of application/x-www-form-urlencoded which messes
    with some web frameworks' test suites (including my own). Instead of
    trying to set a Content-Type header and request body on DELETEs, treat
    them more like GET requests.
    
    Signed-off-by: David Celis <me@davidcel.is>
    davidcelis committed Jul 27, 2015
    Configuration menu
    Copy the full SHA
    c1849d6 View commit details
    Browse the repository at this point in the history