特殊页面中的URL抓取的内容也支持请求变量

This commit is contained in:
GoEdgeLab
2021-09-21 10:13:30 +08:00
parent 88b1d20dcd
commit 2a8658c436
4 changed files with 15 additions and 7 deletions

View File

@@ -21,7 +21,7 @@ func (this *HTTPRequest) doPage(status int) (shouldStop bool) {
for _, page := range this.web.Pages {
if page.Match(status) {
if urlPrefixRegexp.MatchString(page.URL) {
this.doURL(http.MethodGet, page.URL, "", page.NewStatus)
this.doURL(http.MethodGet, page.URL, "", page.NewStatus, true)
return true
} else {
file := Tea.Root + Tea.DS + page.URL