vishalanandl177 / DRF-API-Logger

An API Logger for your Django Rest Framework project.
https://github.com/vishalanandl177/DRF-API-Logger
Apache License 2.0
303 stars 57 forks source link

Added support for logging APIs returning GZIP data #66

Closed cantus-firmus closed 1 year ago

cantus-firmus commented 1 year ago

This change allows the API Logger to capture a log message for API calls in which the response includes content of type "application/gzip". Since the the binary archive should not be included in the log file, the response_body merely indicates the content type.

Prior to this change, API requests returning GZIP data were simply not logged.