Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Remove duplicated header.
  • Loading branch information
carlonluca committed Jul 22, 2022
commit 1f2ffbfcf19c8adb4578a519228ee7b79a46224f
4 changes: 1 addition & 3 deletions src/daemon/driver/driverControlers.ml
Original file line number Diff line number Diff line change
Expand Up @@ -795,9 +795,7 @@ let http_add_text_header r ext =
add_gzip_headers r

let http_add_bin_info_header r clen =
add_reply_header r "Accept-Ranges" "bytes";
add_reply_header r "Content-Length" (Printf.sprintf "%d" clen)
(* FIXME Content-Length is duplicated *)
add_reply_header r "Accept-Ranges" "bytes"

let http_add_bin_header r ext clen =
http_file_type := ext_to_file_type ext;
Expand Down