(self)
| 158 | super().do_GET() |
| 159 | |
| 160 | def do_POST(self) -> None: |
| 161 | if self.path != "/__cn1__/log": |
| 162 | self.send_error(404) |
| 163 | return |
| 164 | length = int(self.headers.get("Content-Length", "0")) |
| 165 | data = self.rfile.read(length).decode("utf-8", errors="replace") |
| 166 | state.append_log(data) |
| 167 | self.send_response(204) |
| 168 | self.end_headers() |
| 169 | |
| 170 | return Handler |
| 171 |
nothing calls this directly
no test coverage detected