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

Bugfix for custom HTTP status codes #561

Merged
merged 2 commits into from
Feb 24, 2018
Merged

Commits on Feb 23, 2018

  1. Let Rails/HttpStatus cop always depend on Rack

    If Rack isn't loaded, the cop just isn't available.
    bquorning committed Feb 23, 2018
    Configuration menu
    Copy the full SHA
    3e4d6e6 View commit details
    Browse the repository at this point in the history
  2. [Fix 560] Allow custom HTTP status codes

    When Rails/HttpStatus is configured to use `symbolic` style, a custom HTTP
    status code (e.g. 550) that couldn't be found in Rack's `SYMBOL_TO_STATUS_CODE`
    hash would result in an error:
    
        ^^^ Prefer `nil` over `550` to describe HTTP status code.
    bquorning committed Feb 23, 2018
    Configuration menu
    Copy the full SHA
    d60334b View commit details
    Browse the repository at this point in the history