Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

fix a incompatibility with rest-client 1.2.0

  • Loading branch information...
commit 2c751847cefc172488628d77a7fa77ba6cd23e6a 1 parent 20c11dd
Jeremy Burks authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/sham_rack/http.rb
View
4 lib/sham_rack/http.rb
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.