Merge pull request #359 from koic/case_insensitive_accept_header
Fix case-sensitive Accept header comparison
This commit is contained in:
commit
dd7dacae47
1 changed files with 40 additions and 1 deletions
|
|
@ -504,7 +504,7 @@ module MCP
|
|||
|
||||
def parse_accept_header(header)
|
||||
header.split(",").map do |part|
|
||||
part.split(";").first.strip
|
||||
part.split(";").first.strip.downcase
|
||||
end
|
||||
end
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue