Whole file
nateherkai/token-dashboard
The author described this change as “fix(server): respond to HEAD by delegating to GET”. It counts as a record because the checks below fail on the code as it stood at 7efe423f2 and pass on 719b429b4, with nothing else changed between the two runs.
Projectnateherkai/token-dashboard
Fix saved2026-04-19
Sharing licenceMIT · LICENSE
Change size+3 −0
What the code was meant to do, written into the code itself as a save note
fix(server): respond to HEAD by delegating to GET
The change
| 60 | 60 | def log_message(self, fmt, *args): | |
| 61 | 61 | pass | |
| 62 | 62 | ||
| 63 | + | def do_HEAD(self): | |
| 64 | + | return self.do_GET() | |
| 65 | + | ||
| 63 | 66 | def do_GET(self): | |
| 64 | 67 | url = urlparse(self.path) | |
| 65 | 68 | qs = parse_qs(url.query or "") |
The check that tells the two apart
fail→pass·tests/test_server.py::ServerTests::test_head_api_endpoint
fail→pass·tests/test_server.py::ServerTests::test_head_returns_200_not_501
Check file tests/test_server.py, taken without changes from the fix and copied onto the older code, so the exact same check runs against both versions.
Origin and history
The code before it7efe423f298df48cae14ece42b28bac846458d20
Broken version dated2026-04-19
Moduletoken_dashboard.server
Units changedbuild_handler
Fingerprint91e09233ec9c435f
Checked2026-08-18 by goldset/0.1
Every field above is generated by our program. None of it is written by hand.