summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGrzegorz Nosek <root@localdomain.pl>2008-05-05 22:06:18 +0200
committerGrzegorz Nosek <root@localdomain.pl>2008-05-05 22:06:18 +0200
commite56b2b351454f05a74765453ef13fc0ac7a2ff68 (patch)
tree5a698fad7a7b2faa590994e9e92a3da90611843b
parentad0e571db068aedf4dda7e08d5d85a06a3b95192 (diff)
downloadfcgiwrap-e56b2b351454f05a74765453ef13fc0ac7a2ff68.tar.xz
fcgiwrap-e56b2b351454f05a74765453ef13fc0ac7a2ff68.zip
Fix CR/LF mangling to skip response body
-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 {