Skip to content

Commit

Permalink
fix: parse http is type (#763)
Browse files Browse the repository at this point in the history
  • Loading branch information
echosoar authored Dec 16, 2020
1 parent bad20d7 commit ee77af5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages-serverless/serverless-http-parser/src/request.ts
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ export const request = {
},

is(type, ...types) {
return typeis(type, ...types);
return typeis(this.get('content-type'), type, ...types);
},

/**
Expand Down

0 comments on commit ee77af5

Please sign in to comment.