mirror of
https://github.com/lxsang/antd-fcgi-plugin.git
synced 2024-11-14 01:18:25 +01:00
fix fastGCI size encoding bug
This commit is contained in:
parent
bb14223253
commit
47e483675a
1
fcgi.c
1
fcgi.c
@ -676,6 +676,7 @@ static int send_request(antd_client_t *cl, antd_request_t* rq)
|
||||
}
|
||||
else
|
||||
{
|
||||
// LOG("FCGI SEND QUERY STRING: %s", tmp);
|
||||
ret += fcgi_send_param(cl, cl->sock, "QUERY_STRING", tmp);
|
||||
}
|
||||
|
||||
|
2
proto.c
2
proto.c
@ -154,7 +154,7 @@ int fcgi_send_param(antd_client_t* cl, int id, const char* key, const char* valu
|
||||
|
||||
if(clen > 0)
|
||||
{
|
||||
uint8_t encoding_type = (((k_length & 0xFF) >> 7) << 0) | (((v_length & 0xFF)>>7) << 1);
|
||||
uint8_t encoding_type = ((k_length>127?1:0) << 0) | ((v_length>127?1:0) << 1);
|
||||
switch(encoding_type)
|
||||
{
|
||||
case PARAMS_LENGTH_11:
|
||||
|
Loading…
Reference in New Issue
Block a user