Skip to content

Commit

Permalink
test: update check logic
Browse files Browse the repository at this point in the history
  • Loading branch information
Zxilly committed Nov 26, 2024
1 parent 1227615 commit a346531
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/test.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,10 @@ def do_GET(self):

# assert user_agent only contains F
if not all([c == 'F' for c in user_agent]):
self.send_response(200)
else:
self.send_response(400)
logging.error(f"Invalid User-Agent: {user_agent}")
else:
self.send_response(200)
self.end_headers()
ua_len = len(user_agent)
self.wfile.write(str(ua_len).encode())
Expand Down

0 comments on commit a346531

Please sign in to comment.