Skip to content

Commit 2093334

Browse files
committed
Added application/octet-stream to content-type condition
1 parent 272ed4f commit 2093334

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drf_api_logger/middleware/api_logger_middleware.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ def __call__(self, request):
102102
if len(self.DRF_API_LOGGER_METHODS) > 0 and method not in self.DRF_API_LOGGER_METHODS:
103103
return response
104104

105-
if response.get('content-type') in ('application/json', 'application/vnd.api+json', 'application/gzip'):
105+
if response.get('content-type') in ('application/json', 'application/vnd.api+json', 'application/gzip', 'application/octet-stream'):
106106

107107
if response.get('content-type') == 'application/gzip':
108108
response_body = '** GZIP Archive **'

0 commit comments

Comments
 (0)