Permalink
Browse files

Workaround for 'Illegal seek' under Apache/CGI [#227]

  • Loading branch information...
rtomayko committed Jun 8, 2009
1 parent 29e01eb commit e8f24a22ea2b513c83aa36473998be364ab3bda9
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/sinatra/base.rb
View
@@ -23,7 +23,7 @@ def accept
# Override Rack 0.9.x's #params implementation (see #72 in lighthouse)
def params
self.GET.update(self.POST)
- rescue EOFError => boom
+ rescue EOFError, Errno::ESPIPE
self.GET
end
end

0 comments on commit e8f24a2

Please sign in to comment.