We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1e68be9 commit fc20596Copy full SHA for fc20596
Lib/http/server.py
@@ -699,8 +699,8 @@ def send_head(self):
699
self.headers["If-Modified-Since"])
700
except (TypeError, IndexError, OverflowError, ValueError):
701
# ignore ill-formed values
702
- ims = None
703
- if ims is not None:
+ pass
+ else:
704
if ims.tzinfo is None:
705
# obsolete format with no timezone, cf.
706
# https://tools.ietf.org/html/rfc7231#section-7.1.1.1
@@ -1243,4 +1243,3 @@ def test(HandlerClass=BaseHTTPRequestHandler,
1243
else:
1244
handler_class = SimpleHTTPRequestHandler
1245
test(HandlerClass=handler_class, port=args.port, bind=args.bind)
1246
-
0 commit comments