summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGrzegorz Nosek <root@localdomain.pl>2008-12-03 21:18:36 +0100
committerGrzegorz Nosek <root@localdomain.pl>2008-12-03 21:18:36 +0100
commit86921709962b95d4c7bf65c1c409c9809bf2e357 (patch)
treea77327b5850d830e89d866430abb14ba0925fb9b
parent86f0d04e4877a07b3afe5da5a854333adda89bf7 (diff)
downloadfcgiwrap-86921709962b95d4c7bf65c1c409c9809bf2e357.tar.xz
fcgiwrap-86921709962b95d4c7bf65c1c409c9809bf2e357.zip
Don't eat characters after final CR/LF
-rw-r--r--fcgiwrap.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/fcgiwrap.c b/fcgiwrap.c
index 81de53c..fee22b2 100644
--- a/fcgiwrap.c
+++ b/fcgiwrap.c
@@ -128,8 +128,8 @@ static const unsigned char header_state_machine[REPLY_STATE_MAX][CC_MAX] = {
},
[REPLY_STATE_2LF] = {
[CC_NORMAL] = REPLY_STATE_BODY | ACTION_END,
- [CC_CR] = REPLY_STATE_2LF | ACTION_SKIP,
- [CC_LF] = REPLY_STATE_2LF | ACTION_SKIP,
+ [CC_CR] = REPLY_STATE_BODY | ACTION_END,
+ [CC_LF] = REPLY_STATE_BODY | ACTION_END,
},
[REPLY_STATE_BODY] = {
[CC_NORMAL] = REPLY_STATE_BODY | ACTION_END,