diff --git a/README.md b/README.md index c6c418860..79d6d8d66 100644 --- a/README.md +++ b/README.md @@ -297,8 +297,8 @@ Some variations in different HTTP implementations require a newline/CRLF before, ] } , function (error, response, body) { - if (err) { - return console.error('upload failed:', err); + if (error) { + return console.error('upload failed:', error); } console.log('Upload successful! Server responded with:', body); }