Skip to content

Commit

Permalink
v0.3.1
Browse files Browse the repository at this point in the history
  • Loading branch information
zhegexiaohuozi committed Apr 17, 2016
1 parent 2eff9fa commit b0ac616
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,10 @@ public static RequestBuilder getHttpRequestBuilder(Request request, CrawlerModel
RequestBuilder requestBuilder;
BaseSeimiCrawler crawler = crawlerModel.getInstance();
if (request.isUseSeimiAgent()){
if (StringUtils.isBlank(crawler.seiAgentHost())){
if (StringUtils.isBlank(crawler.seimiAgentHost())){
throw new SeimiProcessExcepiton("SeimiAgentHost is blank.");
}
String seimiAgentUrl = "http://"+crawler.seiAgentHost()+(crawler.seimiAgentPort()!=80?(":"+crawler.seimiAgentPort()):"")+"/doload";
String seimiAgentUrl = "http://"+crawler.seimiAgentHost()+(crawler.seimiAgentPort()!=80?(":"+crawler.seimiAgentPort()):"")+"/doload";
requestBuilder = RequestBuilder.post().setUri(seimiAgentUrl);
requestBuilder.addParameter("url",request.getUrl());
if (StringUtils.isNotBlank(crawler.proxy())){
Expand Down

0 comments on commit b0ac616

Please sign in to comment.