From f3ab5c5dd6d1f4debbb38c282521300c2b64fe45 Mon Sep 17 00:00:00 2001 From: Stefan Eissing Date: Wed, 19 Oct 2022 09:16:30 +0000 Subject: tests modules/http1: use "Header add" to produce response headers with whitespace. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1904693 13f79535-47bb-0310-9956-ffa450edef68 --- test/pyhttpd/env.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'test/pyhttpd') diff --git a/test/pyhttpd/env.py b/test/pyhttpd/env.py index af856effe4..67d32b7b38 100644 --- a/test/pyhttpd/env.py +++ b/test/pyhttpd/env.py @@ -739,7 +739,8 @@ class HttpdTestEnv: self.curl_parse_headerfile(headerfile, r=r) if r.json: r.response["json"] = r.json - os.remove(headerfile) + if os.path.isfile(headerfile): + os.remove(headerfile) return r def curl_get(self, url, insecure=False, options=None): -- cgit v1.2.3