aboutsummaryrefslogtreecommitdiff
path: root/fcgiwrap.c
diff options
context:
space:
mode:
authorFurkan Sahin <furkan-dev@proton.me>2008-05-05 22:06:18 +0200
committerFurkan Sahin <furkan-dev@proton.me>2008-05-05 22:06:18 +0200
commit5a217e4f2276a8393c392a558ac6a8863752a750 (patch)
tree5a698fad7a7b2faa590994e9e92a3da90611843b /fcgiwrap.c
parent72573aa33af3b920f80d5a76beacf681f9a4976a (diff)
Fix CR/LF mangling to skip response body
Diffstat (limited to 'fcgiwrap.c')
-rw-r--r--fcgiwrap.c5
1 files changed, 5 insertions, 0 deletions
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 {