Kills the flow if it has an error different to HTTPSyntaxException. Sometimes, web scanners generate malformed HTTP syntax on purpose and we do not want to kill these requests.
(self, flow: http.HTTPFlow)
| 10 | |
| 11 | |
| 12 | def error(self, flow: http.HTTPFlow): |
| 13 | """Kills the flow if it has an error different to HTTPSyntaxException. |
| 14 | Sometimes, web scanners generate malformed HTTP syntax on purpose and we do not want to kill these requests. |
| 15 | """ |
| 16 | if flow.error is not None and not isinstance(flow.error, HttpSyntaxException): |
| 17 | flow.kill() |
nothing calls this directly
no test coverage detected
searching dependent graphs…