Skip to content

Commit

Permalink
[api] Remove unused compression field from /display API
Browse files Browse the repository at this point in the history
  • Loading branch information
Harshg999 committed Jan 13, 2025
1 parent 95e4e0c commit 790cfce
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions apps/filebrowser/src/filebrowser/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -364,7 +364,6 @@ def display(request):
'length': length,
'end': offset + len(contents),
'mode': mode,
'compression': compression,
}

return JsonResponse(data)
Expand Down

0 comments on commit 790cfce

Please sign in to comment.