summaryrefslogtreecommitdiffstats
path: root/Lib/http
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2017-09-14 06:38:36 (GMT)
committerGitHub <noreply@github.com>2017-09-14 06:38:36 (GMT)
commit13ad3b7a82bf56d803fbe48ee5df6c4b08986c78 (patch)
tree5704d2735779297fbba0e99ae333ff1a4f928513 /Lib/http
parent312ffead1eb272535e021e248b5d74ab04b2e72e (diff)
downloadcpython-13ad3b7a82bf56d803fbe48ee5df6c4b08986c78.zip
cpython-13ad3b7a82bf56d803fbe48ee5df6c4b08986c78.tar.gz
cpython-13ad3b7a82bf56d803fbe48ee5df6c4b08986c78.tar.bz2
bpo-31462: Remove trailing whitespaces. (#3564)
Diffstat (limited to 'Lib/http')
-rw-r--r--Lib/http/server.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/http/server.py b/Lib/http/server.py
index b1151a2..502bce0 100644
--- a/Lib/http/server.py
+++ b/Lib/http/server.py
@@ -717,7 +717,7 @@ class SimpleHTTPRequestHandler(BaseHTTPRequestHandler):
fs.st_mtime, datetime.timezone.utc)
# remove microseconds, like in If-Modified-Since
last_modif = last_modif.replace(microsecond=0)
-
+
if last_modif <= ims:
self.send_response(HTTPStatus.NOT_MODIFIED)
self.end_headers()
@@ -727,7 +727,7 @@ class SimpleHTTPRequestHandler(BaseHTTPRequestHandler):
self.send_response(HTTPStatus.OK)
self.send_header("Content-type", ctype)
self.send_header("Content-Length", str(fs[6]))
- self.send_header("Last-Modified",
+ self.send_header("Last-Modified",
self.date_time_string(fs.st_mtime))
self.end_headers()
return f