We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Clearance sends a symbol header (:clearance) instead of string, which crashes the parsing.
:clearance
[2] pry(#<Castle::HeaderFormatter>)> From: /Users/brissmyr/.rvm/gems/ruby-2.2.4/gems/castle-rb-3.0.0/lib/castle/header_formatter.rb @ line 7 Castle::HeaderFormatter#call: 5: def call(header) 6: binding.pry => 7: header.gsub(/^HTTP(?:_|-)/i, '').split(/_|-/).map(&:capitalize).join('-') 8: end [1] pry(#<Castle::HeaderFormatter>)> header => "action_dispatch.request.content_type" [2] pry(#<Castle::HeaderFormatter>)> From: /Users/brissmyr/.rvm/gems/ruby-2.2.4/gems/castle-rb-3.0.0/lib/castle/header_formatter.rb @ line 7 Castle::HeaderFormatter#call: 5: def call(header) 6: binding.pry => 7: header.gsub(/^HTTP(?:_|-)/i, '').split(/_|-/).map(&:capitalize).join('-') 8: end [1] pry(#<Castle::HeaderFormatter>)> header => :clearance [2] pry(#<Castle::HeaderFormatter>)> Completed 500 Internal Server Error in 179877ms NoMethodError (undefined method `gsub' for :clearance:Symbol): app/controllers/sessions_controller.rb:11:in `create'
The text was updated successfully, but these errors were encountered:
nijikon
Successfully merging a pull request may close this issue.
Clearance sends a symbol header (
:clearance
) instead of string, which crashes the parsing.The text was updated successfully, but these errors were encountered: