Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SeimiDownloader 处理 uri 存在问题 #64

Open
rexleimo opened this issue Jan 14, 2021 · 1 comment
Open

SeimiDownloader 处理 uri 存在问题 #64

rexleimo opened this issue Jan 14, 2021 · 1 comment

Comments

@rexleimo
Copy link

当匹配到这样的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);
}

这里的拼接就有问题了

@zhegexiaohuozi
Copy link
Owner

欢迎提交经过充分测试的PR

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants