Skip to content

Deprecated warning for :unprocessable_entity #308

@Cosmo

Description

@Cosmo

Summary

When using Wicked with recent versions of Rack, the following warning appears:

warning: Status code :unprocessable_entity is deprecated and will be removed in a future version of Rack. 
Please use :unprocessable_content instead.

See Rack#2137.

Details

There one occurrence in render_redirect.rb and one in the corresponding test (status_codes_controller_test.rb).

Possible fixes

  • Replace symbol with :unprocessable_content and drop support for older versions of Rack
  • Use a numeric status code 422 instead of named symbol
  • Add code for backwards compatibility

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions