Skip to content

Commit

Permalink
Merge pull request #754 from jjiang-stripe/jjiang/fix-socket
Browse files Browse the repository at this point in the history
[bugfix] Overwrite socket data if already initialized
  • Loading branch information
geemus committed Jul 16, 2021
2 parents 089dc7f + 653e69d commit 7aa10f8
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 7aa10f8

Please sign in to comment.