diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2017-09-14 06:38:36 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-09-14 06:38:36 (GMT) |
commit | 13ad3b7a82bf56d803fbe48ee5df6c4b08986c78 (patch) | |
tree | 5704d2735779297fbba0e99ae333ff1a4f928513 /Lib/http | |
parent | 312ffead1eb272535e021e248b5d74ab04b2e72e (diff) | |
download | cpython-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.py | 4 |
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 |