Skip to content

Commit 272ed4f

Browse files
committed
Added support for application/octet-stream
1 parent 457653e commit 272ed4f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

drf_api_logger/middleware/api_logger_middleware.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,8 @@ def __call__(self, request):
106106

107107
if response.get('content-type') == 'application/gzip':
108108
response_body = '** GZIP Archive **'
109+
elif response.get('content-type') == 'application/octet-stream':
110+
response_body = '** Binary File **'
109111
elif getattr(response, 'streaming', False):
110112
response_body = '** Streaming **'
111113
else:

0 commit comments

Comments
 (0)