From 86921709962b95d4c7bf65c1c409c9809bf2e357 Mon Sep 17 00:00:00 2001 From: Grzegorz Nosek Date: Wed, 3 Dec 2008 21:18:36 +0100 Subject: Don't eat characters after final CR/LF --- fcgiwrap.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'fcgiwrap.c') 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, -- cgit v1.2.3