Fix halt(invoke) breaks its argument #613

Merged
merged 1 commit into from Jan 17, 2013
Jump to file or symbol
Failed to load files and symbols.
+1 −0
Split
View
@@ -949,6 +949,7 @@ def invoke
res = catch(:halt) { yield }
res = [res] if Fixnum === res or String === res
if Array === res and Fixnum === res.first
+ res = res.dup
status(res.shift)
body(res.pop)
headers(*res)