Skip to content

Return full log from compressed TestJob output

FileResponse incorrectly guesses [0] Content-Length of the TestJob log to be served and the log was only returned up to the compressed output file size.

Setting response headers manually to the size of the uncompressed output (from "output.yaml.size" file) fixes this behaviour and returns full TestJob log.

[0] https://docs.djangoproject.com/en/3.2/ref/request-response/#fileresponse-objects

Upstream MR: https://git.lavasoftware.org/lava/lava/-/merge_requests/2164

Signed-off-by: Paweł Wieczorek pawiecz@collabora.com

Edited by Paweł Wieczorek

Merge request reports