增加根据Host和URI拼接URL的功能
This commit is contained in:
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user