Browse Source

[api] Remove unused compression field from /display API (#3955)

Harsh Gupta 10 months ago
parent
commit
b4b4e0ee69
1 changed files with 1 additions and 2 deletions
  1. 1 2
      apps/filebrowser/src/filebrowser/api.py

+ 1 - 2
apps/filebrowser/src/filebrowser/api.py

@@ -344,7 +344,7 @@ def display(request):
     return HttpResponse(f'Cannot request chunks greater than {MAX_CHUNK_SIZE_BYTES} bytes.', status=400)
 
   # Read out based on meta.
-  compression, offset, length, contents = read_contents(compression, path, request.fs, offset, length)
+  _, offset, length, contents = read_contents(compression, path, request.fs, offset, length)
 
   # Get contents as string for text mode, or at least try
   file_contents = None
@@ -364,7 +364,6 @@ def display(request):
     'length': length,
     'end': offset + len(contents),
     'mode': mode,
-    'compression': compression,
   }
 
   return JsonResponse(data)