We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 770dab5 commit 61ece3fCopy full SHA for 61ece3f
lib/hooks/app/helpers.rb
@@ -48,7 +48,7 @@ def enforce_request_limits(config)
48
# @return [Hash, String] Parsed JSON as Hash (optionally symbolized), or raw body if not JSON
49
def parse_payload(raw_body, headers, symbolize: true)
50
# Optimized content type check - check most common header first
51
- content_type = headers["Content-Type"] || headers["CONTENT_TYPE"] || headers["content-type"]
+ content_type = headers["Content-Type"] || headers["CONTENT_TYPE"] || headers["content-type"] || headers["HTTP_CONTENT_TYPE"]
52
53
# Try to parse as JSON if content type suggests it or if it looks like JSON
54
if content_type&.include?("application/json") || (raw_body.strip.start_with?("{", "[") rescue false)
0 commit comments