Skip to content

Commit

Permalink
not response twice
Browse files Browse the repository at this point in the history
  • Loading branch information
binux committed Oct 31, 2014
1 parent 3eb13b7 commit 75c99c8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion fetcher/phantomjs_fetcher.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ if (system.args.length !== 2) {
end_time = null;
};
page.onResourceReceived = function(response) {
console.debug("Request finished: #"+response.id+" ["+response.statusText+"]"+response.url+" "+response.time+"ms");
console.debug("Request finished: #"+response.id+" ["+response.statusText+"]"+response.url);
if (first_response === null) {
first_response = response;
}
Expand Down Expand Up @@ -105,6 +105,7 @@ if (system.args.length !== 2) {
setTimeout(make_result, Date.now() - end_time, page);
return;
}
end_time = null;

var cookies = {};
page.cookies.forEach(function(e) {
Expand Down

0 comments on commit 75c99c8

Please sign in to comment.