Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Treat StringIO in WebMockNetBufferedIO properly

  • Loading branch information...
commit af2634c0d99d7c9199b68f327f9be3d0d5b18f5f 1 parent e2c2e27
@fxposter fxposter authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/webmock/http_lib_adapters/net_http.rb
View
2  lib/webmock/http_lib_adapters/net_http.rb
@@ -216,7 +216,7 @@ def initialize(io, debug_output = nil)
@debug_output = debug_output
@io = case io
- when Socket, OpenSSL::SSL::SSLSocket, IO
+ when Socket, OpenSSL::SSL::SSLSocket, IO, StringIO
io
when String
StringIO.new(io)
Please sign in to comment.
Something went wrong with that request. Please try again.