From e56b2b351454f05a74765453ef13fc0ac7a2ff68 Mon Sep 17 00:00:00 2001 From: Grzegorz Nosek Date: Mon, 5 May 2008 22:06:18 +0200 Subject: Fix CR/LF mangling to skip response body --- fcgiwrap.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/fcgiwrap.c b/fcgiwrap.c index c1a19ab..8430bfa 100644 --- a/fcgiwrap.c +++ b/fcgiwrap.c @@ -131,6 +131,11 @@ static const unsigned char header_state_machine[REPLY_STATE_MAX][CC_MAX] = { [CC_CR] = REPLY_STATE_2LF | ACTION_SKIP, [CC_LF] = REPLY_STATE_2LF | ACTION_SKIP, }, + [REPLY_STATE_BODY] = { + [CC_NORMAL] = REPLY_STATE_BODY | ACTION_END, + [CC_CR] = REPLY_STATE_BODY | ACTION_END, + [CC_LF] = REPLY_STATE_BODY | ACTION_END, + }, }; struct fcgi_context { -- cgit v1.2.3