stripping values on header (to remove undesired \n

This commit is contained in:
HoneyryderChuck 2019-11-27 17:44:38 +00:00
parent 3f655bb031
commit a0a3cfa8a5

View File

@ -151,9 +151,9 @@ module HTTPX
def array_value(value)
case value
when Array
value.map { |val| String(val) }
value.map { |val| String(val).strip }
else
[String(value)]
[String(value).strip]
end
end