Dashboard: Fix handling of DOS line breaks

This commit is contained in:
Ole Schütt 2021-07-07 00:41:58 +02:00 committed by Ole Schütt
parent 18c9b9bd1e
commit 7a55edd99b

View file

@ -678,7 +678,7 @@ def retrieve_report(url: str) -> Optional[str]:
assert report_size < 3 * 1024 * 1024 # 3 MB
# download full report
report_text = r.text.replace("\r", "")
report_text = r.text.replace("\r\n", "\n").replace("\r", "\n")
# cache miss - store response
if "ETag" in r.headers: