Close #60 修正POST请求无Content-Length字段时无法转发请求的问题

* 部分HTTP POST请求中无有Content-Length字段,导致无法确定请求的边界。
* 现修正为,当发现Content-Length字段缺失时,Passthrough整个TCP连接。
* TODO: 解析POST编码或回应411应答。
This commit is contained in:
Lu Qiuwen
2018-10-25 16:47:19 +08:00
parent 5525e5a8e6
commit 0cd191b9e6
3 changed files with 34 additions and 4 deletions

View File

@@ -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);