diff options
author | Stefan Eissing <icing@apache.org> | 2022-10-19 11:16:30 +0200 |
---|---|---|
committer | Stefan Eissing <icing@apache.org> | 2022-10-19 11:16:30 +0200 |
commit | f3ab5c5dd6d1f4debbb38c282521300c2b64fe45 (patch) | |
tree | b770d8250986eba09828a671e01cf9aebe2dee61 /test/pyhttpd/env.py | |
parent | mod_dav: Follow up to r1904638: Fix duplicated APLOGNO. (diff) | |
download | apache2-f3ab5c5dd6d1f4debbb38c282521300c2b64fe45.tar.xz apache2-f3ab5c5dd6d1f4debbb38c282521300c2b64fe45.zip |
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
Diffstat (limited to 'test/pyhttpd/env.py')
-rw-r--r-- | test/pyhttpd/env.py | 3 |
1 files changed, 2 insertions, 1 deletions
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): |