Unverified Commit 876fdf0b authored by Marius van den Beek's avatar Marius van den Beek Committed by GitHub
Browse files

Merge pull request #20475 from mvdbeek/header_string

[24.2] Make response header values strings
parents c7acfe7b f508330d
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -641,7 +641,7 @@ class Data(metaclass=DataMeta):
            content_type = "text/html"
            if from_dataset.creating_job.imported:
                content_type = "text/plain"
                headers["x-sanitized-job-imported"] = True
                headers["x-sanitized-job-imported"] = "true"
            if not from_dataset.creating_job.tool_id.startswith(tuple(trans.app.config.sanitize_allowlist)):
                content_type = "text/plain"
                headers["x-sanitized-tool-id"] = from_dataset.creating_job.tool_id