Skip to content

Commit

Permalink
Fix is-binary as true
Browse files Browse the repository at this point in the history
  • Loading branch information
dougmoscrop committed Apr 3, 2022
1 parent 2628d78 commit f21687c
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ This module allows you to 'wrap' your API for serverless use. No HTTP server, no
### Supported Providers

* AWS
* Azure
* Azure (Experimental, untested, probably outdated)

## Examples

Expand Down
4 changes: 4 additions & 0 deletions lib/provider/aws/is-binary.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,10 @@ module.exports = function isBinary(headers, options) {
return false;
}

if (options.binary === true) {
return true
}

if (typeof options.binary === 'function') {
return options.binary(headers);
}
Expand Down
4 changes: 4 additions & 0 deletions lib/provider/azure/is-binary.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,10 @@ module.exports = function isBinary(headers, options) {
return false;
}

if (options.binary === true) {
return true
}

if (typeof options.binary === 'function') {
return options.binary(headers);
}
Expand Down

0 comments on commit f21687c

Please sign in to comment.