Class: Net::HTTPRequest

Inherits:
Object
  • Object
show all
Defined in:
lib/www/ntlm-http/lib/net/ntlm_http.rb

Overview

because of the handshaking i have to rewind body stream. maybe body stream shouldn’t be sent when authenticating??

Instance Method Summary collapse

Instance Method Details

#reuseObject



806
807
808
809
810
811
812
# File 'lib/www/ntlm-http/lib/net/ntlm_http.rb', line 806

def reuse
  if body_stream
    begin   body_stream.rewind
    rescue; raise "error rewinding body stream for authentication"
    end
  end
end