@aws-sdk/node-http-handler
Advanced tools
Comparing version 3.348.0 to 3.350.0
@@ -11,2 +11,3 @@ "use strict"; | ||
let timeoutId = -1; | ||
let hasError = false; | ||
if (expect === "100-continue") { | ||
@@ -22,6 +23,13 @@ await Promise.race([ | ||
}); | ||
httpRequest.on("error", () => { | ||
hasError = true; | ||
clearTimeout(timeoutId); | ||
resolve(); | ||
}); | ||
}), | ||
]); | ||
} | ||
writeBody(httpRequest, request.body); | ||
if (!hasError) { | ||
writeBody(httpRequest, request.body); | ||
} | ||
} | ||
@@ -28,0 +36,0 @@ exports.writeRequestBody = writeRequestBody; |
@@ -7,2 +7,3 @@ import { Readable } from "stream"; | ||
let timeoutId = -1; | ||
let hasError = false; | ||
if (expect === "100-continue") { | ||
@@ -18,6 +19,13 @@ await Promise.race([ | ||
}); | ||
httpRequest.on("error", () => { | ||
hasError = true; | ||
clearTimeout(timeoutId); | ||
resolve(); | ||
}); | ||
}), | ||
]); | ||
} | ||
writeBody(httpRequest, request.body); | ||
if (!hasError) { | ||
writeBody(httpRequest, request.body); | ||
} | ||
} | ||
@@ -24,0 +32,0 @@ function writeBody(httpRequest, body) { |
{ | ||
"name": "@aws-sdk/node-http-handler", | ||
"version": "3.348.0", | ||
"version": "3.350.0", | ||
"description": "Provides a way to make requests", | ||
@@ -5,0 +5,0 @@ "scripts": { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
77794
1649