mirror of
https://github.com/HoneyryderChuck/httpx.git
synced 2025-10-01 00:01:03 -04:00
stripping values on header (to remove undesired \n
This commit is contained in:
parent
3f655bb031
commit
a0a3cfa8a5
@ -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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user