Fix bug in HTTP FSM

This commit is contained in:
_Frky 2021-12-23 11:06:48 +01:00
parent a422f60a9a
commit cffc94feb7

View file

@ -232,6 +232,11 @@ pub fn repl<'a>(
debug!("pstate: {}", pstate.state);
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 = "\
<html>
<head><title>401 Authorization Required</title></head>