APItools / monitor

Track, transform and analyze the traffic between your app and the APIs you use.
https://www.apitools.com
MIT License
140 stars 23 forks source link

Handle gzip content... #1

Open interhive opened 10 years ago

interhive commented 10 years ago

How should we go about handling Gzip'd content we're receiving upstream from our API service provider?

Right now, in the trace, we're seeing '(binary)' for the content. We'd like to gunzip this and add to the trace.

Thanks!

vramosp commented 10 years ago

Try this, it should work: https://github.com/APItools/middleware/blob/master/middleware/accept-encoding-identity/accept-encoding-identity.lua

interhive commented 10 years ago

Was hoping to keep the benefit of gzip'd content from our provider... will investigate further. Thanks!