diff --git a/.changes/next-release/bugfix-s3-a986db56.json b/.changes/next-release/bugfix-s3-a986db56.json new file mode 100644 index 0000000000..220934c94d --- /dev/null +++ b/.changes/next-release/bugfix-s3-a986db56.json @@ -0,0 +1,5 @@ +{ + "type": "bugfix", + "category": "s3", + "description": "handle 'continue' event only once" +} \ No newline at end of file diff --git a/lib/http/node.js b/lib/http/node.js index be69f691d7..a4c4a34fd7 100644 --- a/lib/http/node.js +++ b/lib/http/node.js @@ -98,7 +98,7 @@ AWS.NodeHttpClient = AWS.util.inherit({ var expect = httpRequest.headers.Expect || httpRequest.headers.expect; if (expect === '100-continue') { - stream.on('continue', function() { + stream.once('continue', function() { self.writeBody(stream, httpRequest); }); } else {