diff options
author | Yousong Zhou <yszhou4tech@gmail.com> | 2015-01-30 19:16:13 +0800 |
---|---|---|
committer | Giuseppe Scrivano <gscrivan@redhat.com> | 2015-03-09 11:40:05 +0100 |
commit | adcc793a268ddd909b23a6582d29c2dc243d9116 (patch) | |
tree | e368bddd5ebc768e82329542a6941645ade714be /testenv/server | |
parent | d94d9cd98b64da50386e04b148d843f5f4c32e4c (diff) | |
download | wget-adcc793a268ddd909b23a6582d29c2dc243d9116.tar.gz |
testenv: typo and style fix.
* testenv/server/http/http_server.py(BaseTest): Add docstring; use raw
string for regex.
* testenv/server/http/http_server.py(_Handler): Typo fix.
* testenv/conf/server_files.py(ServerFiles): Code style change for
readability plus another typo fix.
Diffstat (limited to 'testenv/server')
-rw-r--r-- | testenv/server/http/http_server.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/testenv/server/http/http_server.py b/testenv/server/http/http_server.py index 9128b3eb..9630efad 100644 --- a/testenv/server/http/http_server.py +++ b/testenv/server/http/http_server.py @@ -368,7 +368,7 @@ class _Handler (BaseHTTPRequestHandler): assert hasattr (self, rule_name) getattr (self, rule_name) (self.rules [rule_name]) except AssertionError as ae: - msg = "Method " + rule_name + " not defined" + msg = "Rule " + rule_name + " not defined" self.send_error (500, msg) return (None, None) except ServerError as se: @@ -399,7 +399,7 @@ class _Handler (BaseHTTPRequestHandler): content_length)) content_length -= self.range_begin cont_type = self.guess_type (path) - self.send_header ("Content-type", cont_type) + self.send_header ("Content-Type", cont_type) self.send_header ("Content-Length", content_length) self.finish_headers () return (content, self.range_begin) |