Skip to content

Commit b2969f0

Browse files
fix(client): loosen json header parsing
1 parent 63021dc commit b2969f0

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

rbi/amocrm/internal/util.rbi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -296,7 +296,7 @@ module Amocrm
296296
end
297297

298298
JSON_CONTENT =
299-
T.let(%r{^application/(?:vnd(?:\.[^.]+)*\+)?json(?!l)}, Regexp)
299+
T.let(%r{^application/(?:[a-zA-Z0-9.-]+\+)?json(?!l)}, Regexp)
300300
JSONL_CONTENT =
301301
T.let(%r{^application/(:?x-(?:n|l)djson)|(:?(?:x-)?jsonl)}, Regexp)
302302

0 commit comments

Comments
 (0)