增加根据Host和URI拼接URL的功能

This commit is contained in:
Lu Qiuwen
2018-09-23 20:01:11 +08:00
parent 2798783641
commit e128dba934
3 changed files with 16 additions and 5 deletions

View File

@@ -62,7 +62,7 @@ void __get_http_request_header_verify_helper(struct http_half_private * hf_priva
/* PUBLIC FIELD */
EXPECT_EQ(hf_public_request->method, TFE_HTTP_GET);
EXPECT_STREQ(hf_public_request->uri, "/gfwlist/gfwlist/master/gfwlist.txt");
EXPECT_STREQ(hf_public_request->url, "/gfwlist/gfwlist/master/gfwlist.txt");
EXPECT_STREQ(hf_public_request->url, "raw.githubusercontent.com/gfwlist/gfwlist/master/gfwlist.txt");
EXPECT_STREQ(hf_public_request->host, "raw.githubusercontent.com");
/* Header Field */
@@ -319,7 +319,7 @@ void __http_post_header_verify_helper(struct http_half_private * hf_private)
/* PUBLIC FIELD */
EXPECT_EQ(hf_public_request->method, TFE_HTTP_POST);
EXPECT_STREQ(hf_public_request->uri, "/");
EXPECT_STREQ(hf_public_request->url, "/");
EXPECT_STREQ(hf_public_request->url, "qbwup.imtt.qq.com/");
EXPECT_STREQ(hf_public_request->host, "qbwup.imtt.qq.com");
/* Header Field */