mirror of
https://github.com/hkalexling/Mango.git
synced 2025-08-02 10:55:30 -04:00
Return strings as header values
This commit is contained in:
parent
ce59acae7a
commit
8d99400c5f
@ -253,7 +253,11 @@ class Plugin
|
||||
|
||||
env.push_object
|
||||
res.headers.each do |k, v|
|
||||
env.push_string v.to_s
|
||||
if v.size == 1
|
||||
env.push_string v[0]
|
||||
else
|
||||
env.push_string v.join ","
|
||||
end
|
||||
env.put_prop_string -2, k
|
||||
end
|
||||
env.put_prop_string -2, "headers"
|
||||
|
Loading…
x
Reference in New Issue
Block a user