Skip to content

Commit

Permalink
Fix: HTTP::Headers.from fails with non String values
Browse files Browse the repository at this point in the history
  • Loading branch information
ysbaddaden committed Jan 11, 2016
1 parent ba74999 commit 0c33dbc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/support/core_ext/http/headers.cr
Expand Up @@ -3,7 +3,7 @@ struct HTTP::Headers
headers = new

if other
headers.merge!(other)
other.each { |key, value| headers[key] = value.to_s }
end

headers
Expand Down

0 comments on commit 0c33dbc

Please sign in to comment.