Skip to content

Commit 612ea8d

Browse files
ian-ottowebknjaz
andauthored
Apply suggestions from code review
Co-Authored-By: Sviatoslav Sydorenko <[email protected]>
1 parent 4f14e47 commit 612ea8d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cheroot/server.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -796,7 +796,7 @@ def parse_request(self):
796796
self.inheaders[b'transfer-encoding'].lower() == b"chunked"):
797797
self.chunked_read = True
798798

799-
uri_is_absolute_form = (scheme or authority)
799+
uri_is_absolute_form = scheme or authority
800800

801801
if self.method == b'OPTIONS':
802802
# TODO: cover this branch with tests
@@ -955,7 +955,7 @@ def respond(self):
955955
self.conn.wfile.write(bytes_out)
956956

957957
# prep for next req cycle if it's available
958-
if self.h_conn.our_state == h11.DONE and self.h_conn.their_state == h11.DONE:
958+
if self.h_conn.our_state is h11.DONE and self.h_conn.their_state is h11.DONE:
959959
self.h_conn.start_next_cycle()
960960
self.close_connection = False
961961
else:

0 commit comments

Comments
 (0)