Skip to content

Commit

Permalink
Allowing empty response body
Browse files Browse the repository at this point in the history
For #671 

Signed-off-by: braj1999 <[email protected]>
  • Loading branch information
braj1999 authored Dec 14, 2023
1 parent a1166f8 commit 2fe0055
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/client.js
Original file line number Diff line number Diff line change
Expand Up @@ -325,7 +325,8 @@ class Client extends Base {
return callback(error, response, body);
}

if (!output) {
if (!output || !obj.Body) {
// for issue 671
// one-way, no output expected
return callback(null, null, body, obj.Header);
}
Expand Down

0 comments on commit 2fe0055

Please sign in to comment.