z0mt3c / hapi-swaggered

Yet another hapi plugin providing swagger compliant API specifications based on routes and joi schemas to be used with swagger-ui.
MIT License
82 stars 38 forks source link

Issue with API Gateway #175

Open matthewcummings opened 6 years ago

matthewcummings commented 6 years ago

I'm not sure yet why this is happening but when I serve my Swagger UI with this plugin via AWS API Gateway, it displays incorrectly - I see a page of garbled binary characters. Everything works fine when I run Hapi locally though. When I curl the endpoint I receive valid HTML however if I add this header "Accept-Encoding: gzip, deflate, br" to my curl command, I see the ame behavior.

Interestingly, the behavior is similar to https://github.com/glennjones/hapi-swagger/issues/528 which makes me wonder if this isn't a problem in the underlying hapi library itself.

Any help is appreciated.