diff options
author | Stefan Eissing <icing@apache.org> | 2021-10-12 19:58:01 +0000 |
---|---|---|
committer | Stefan Eissing <icing@apache.org> | 2021-10-12 19:58:01 +0000 |
commit | bf7b392b259f1d4c8cc761ee1a867efe855908fb (patch) | |
tree | 2a613400ba2b7ddb3fe9554777adba4bcef2ab6d /test/pyhttpd | |
parent | 59b7c104ce06c90be20ff50435d912a444341245 (diff) | |
download | httpd-bf7b392b259f1d4c8cc761ee1a867efe855908fb.tar.gz |
* mod_http2: fixing some compiler warnings.
length of output written now correctly calculated after buckets
have been read.
test cases updated.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1894172 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'test/pyhttpd')
-rw-r--r-- | test/pyhttpd/htdocs/cgi/echo.py | 1 | ||||
-rw-r--r-- | test/pyhttpd/nghttp.py | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/test/pyhttpd/htdocs/cgi/echo.py b/test/pyhttpd/htdocs/cgi/echo.py index 5ffe6ed823..58d811c42d 100644 --- a/test/pyhttpd/htdocs/cgi/echo.py +++ b/test/pyhttpd/htdocs/cgi/echo.py @@ -9,6 +9,7 @@ for line in sys.stdin: # Just echo what we get print("Status: 200") +print(f"Request-Length: {len(content)}") print("Content-Type: application/data\n") sys.stdout.write(content) diff --git a/test/pyhttpd/nghttp.py b/test/pyhttpd/nghttp.py index 362b2fdd49..2207dd31b3 100644 --- a/test/pyhttpd/nghttp.py +++ b/test/pyhttpd/nghttp.py @@ -182,7 +182,7 @@ class Nghttp: main_stream = 99999999999 for sid in streams: s = streams[sid] - if ":status" in s["response"]["header"]: + if "header" in s["response"] and ":status" in s["response"]["header"]: s["response"]["status"] = int(s["response"]["header"][":status"]) if (sid % 2) == 1 and sid < main_stream: main_stream = sid |