Permalink
Browse files

fix a incompatibility with rest-client 1.2.0

  • Loading branch information...
Jeremy Burks
Jeremy Burks committed Jan 7, 2010
1 parent 20c11dd commit 2c751847cefc172488628d77a7fa77ba6cd23e6a
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/sham_rack/http.rb
View
@@ -46,7 +46,7 @@ def io_env(request, body)
raise(ArgumentError, "both request.body and body argument were provided") if (request.body && body)
body ||= request.body || ""
{
- "rack.input" => StringIO.new(body),
+ "rack.input" => StringIO.new(body.to_s),
"rack.errors" => $stderr
}
end
@@ -103,4 +103,4 @@ def read_body(dest = nil)
end
-end
+end

0 comments on commit 2c75184

Please sign in to comment.