Browse files

dup

  • Loading branch information...
1 parent 9984d0d commit 6cbff567b46ea37c628955e7271ac276e86af1a1 @sonots sonots committed Jan 17, 2013
Showing with 1 addition and 0 deletions.
  1. +1 −0 lib/sinatra/base.rb
View
1 lib/sinatra/base.rb
@@ -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)

0 comments on commit 6cbff56

Please sign in to comment.