Close #60 修正POST请求无Content-Length字段时无法转发请求的问题
* 部分HTTP POST请求中无有Content-Length字段,导致无法确定请求的边界。 * 现修正为,当发现Content-Length字段缺失时,Passthrough整个TCP连接。 * TODO: 解析POST编码或回应411应答。
This commit is contained in:
@@ -95,6 +95,8 @@ struct http_half_private
|
||||
|
||||
/* UPGRADE */
|
||||
bool is_upgrade;
|
||||
/* PASSTHROUGH */
|
||||
bool is_passthrough;
|
||||
};
|
||||
|
||||
struct http_half_private * hf_private_create(tfe_http_direction ht_dir, short major, short minor);
|
||||
|
||||
Reference in New Issue
Block a user