summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Duncan <pabs@pablotron.org>2016-08-26 21:51:32 -0400
committerPaul Duncan <pabs@pablotron.org>2016-08-26 21:51:32 -0400
commite1c4626dc792f9ff0fa1916e5445157f30de1db5 (patch)
treeec4cf855081634dbf1a2b04a174fb5a1df726fed
parent4780bd9c0286b149ab51aae8a5937a823660bb51 (diff)
downloadlibfhp-e1c4626dc792f9ff0fa1916e5445157f30de1db5.tar.bz2
libfhp-e1c4626dc792f9ff0fa1916e5445157f30de1db5.zip
set state after header value
-rw-r--r--fhp.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/fhp.c b/fhp.c
index 237345b..428fc38 100644
--- a/fhp.c
+++ b/fhp.c
@@ -550,6 +550,9 @@ retry:
if (!fhp_buf_push(fhp, FHP_TOKEN_HEADER_NAME_FRAGMENT, byte))
return FHP_ERR_CB;
+ // set state
+ fhp->state = FHP_STATE_HEADER_NAME;
+
break;
case '\r':
// flush buffer