Skip to content

SeimiDownloader 处理 uri 存在问题 #64

@rexleimo

Description

@rexleimo

当匹配到这样的url的时候 //fundact.eastmoney.com/banner/Hot_Em.html?spm=xlb

public Response metaRefresh(String nextUrl) throws Exception {
if (!nextUrl.startsWith("http")) {
String prefix = this.getRealUrl(this.httpContext);
nextUrl = prefix + nextUrl;
}

    this.logger.info("Seimi refresh url to={} from={}", nextUrl, this.currentReqBuilder.getUri());
    this.currentReqBuilder.setUri(nextUrl);
    this.httpResponse = this.hc.execute(this.currentReqBuilder.build(), this.httpContext);
    return this.renderResponse(this.httpResponse, this.currentRequest, this.httpContext);
}

这里的拼接就有问题了

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions