summaryrefslogtreecommitdiffstats
path: root/test/pyhttpd/env.py
diff options
context:
space:
mode:
authorStefan Eissing <icing@apache.org>2022-10-19 11:16:30 +0200
committerStefan Eissing <icing@apache.org>2022-10-19 11:16:30 +0200
commitf3ab5c5dd6d1f4debbb38c282521300c2b64fe45 (patch)
treeb770d8250986eba09828a671e01cf9aebe2dee61 /test/pyhttpd/env.py
parentmod_dav: Follow up to r1904638: Fix duplicated APLOGNO. (diff)
downloadapache2-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.py3
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):