mirror of
https://github.com/ivre/masscanned.git
synced 2025-10-02 06:38:21 +00:00
Fix bug in HTTP FSM
This commit is contained in:
parent
a422f60a9a
commit
cffc94feb7
1 changed files with 5 additions and 0 deletions
|
@ -232,6 +232,11 @@ pub fn repl<'a>(
|
||||||
debug!("pstate: {}", pstate.state);
|
debug!("pstate: {}", pstate.state);
|
||||||
return None;
|
return None;
|
||||||
}
|
}
|
||||||
|
/* if not in CONTENT state, not responding yet (it means the client
|
||||||
|
* has not finished sending headers yet) */
|
||||||
|
if pstate.state != HTTP_STATE_CONTENT {
|
||||||
|
return None;
|
||||||
|
}
|
||||||
let content = "\
|
let content = "\
|
||||||
<html>
|
<html>
|
||||||
<head><title>401 Authorization Required</title></head>
|
<head><title>401 Authorization Required</title></head>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue