Skip to content

Commit

Permalink
Overwrite socket data if already initialized
Browse files Browse the repository at this point in the history
  • Loading branch information
jjiang-stripe committed Jul 15, 2021
1 parent 089dc7f commit 653e69d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/excon/connection.rb
Expand Up @@ -115,7 +115,7 @@ def request_call(datum)
# we already have data from a middleware, so bail
return datum
else
socket(datum)
socket(datum).data = datum
# start with "METHOD /path"
request = datum[:method].to_s.upcase + ' '
if datum[:proxy] && datum[:scheme] != HTTPS
Expand Down

0 comments on commit 653e69d

Please sign in to comment.