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.
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.