|
|
|
@ -1985,6 +1985,24 @@ const struct url_test url_tests[] =
|
|
|
|
|
,.rv=0
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
, {.name="extra ? in query string"
|
|
|
|
|
,.url="http://a.tbcdn.cn/p/fp/2010c/??fp-header-min.css,fp-base-min.css,fp-channel-min.css,fp-product-min.css,fp-mall-min.css,fp-category-min.css,fp-sub-min.css,fp-gdp4p-min.css,fp-css3-min.css,fp-misc-min.css?t=20101022.css"
|
|
|
|
|
,.is_connect=0
|
|
|
|
|
,.u=
|
|
|
|
|
{.field_set=(1<<UF_SCHEMA) | (1<<UF_HOST) | (1<<UF_PATH) | (1<<UF_QUERY)
|
|
|
|
|
,.port=0
|
|
|
|
|
,.field_data=
|
|
|
|
|
{{ 0, 4 } /* UF_SCHEMA */
|
|
|
|
|
,{ 7, 10 } /* UF_HOST */
|
|
|
|
|
,{ 0, 0 } /* UF_PORT */
|
|
|
|
|
,{ 17, 12 } /* UF_PATH */
|
|
|
|
|
,{ 30,187 } /* UF_QUERY */
|
|
|
|
|
,{ 0, 0 } /* UF_FRAGMENT */
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
,.rv=0
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
, {.name="proxy empty host"
|
|
|
|
|
,.url="http://:443/"
|
|
|
|
|
,.is_connect=1
|
|
|
|
|