irensaltali / serverlessapigateway

Serverless API Gateway
https://serverlessapigateway.com/
Other
62 stars 10 forks source link

Incorrect status code #38

Closed denizcdemirci closed 8 months ago

denizcdemirci commented 8 months ago

When I send an incorrect value to the authorization header, I get a positive response with a status code of 200 OK instead of the expected 401. In this case, it should have returned 401.

For example, the incorrect request is as follows:

curl 'https://api.wope.com/properties/space/project' \
  -H 'authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9, Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9
irensaltali commented 8 months ago

Fixed with #43