We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
phantomjs/index.js
page.onResourceReceived = function(res){ if(res.stage === 'end'){ count--; // log('- [' + count + ']' + res.url, _.log.DEBUG); callback(); } };
加上重定向的判断会好一些 : if(res.stage === 'end' || !!res.redirectURL)
!!res.redirectURL
The text was updated successfully, but these errors were encountered:
这样也不对。 重定向的请求,不能保证收到stage === 'end' 的事件.
stage === 'end'
Sorry, something went wrong.
针对请求ID, 对不同响应码分别处理,会比计数更可靠
@magicsilence
多谢提醒, 之前确实没有注意到,后面我改一下
No branches or pull requests
phantomjs/index.js
加上重定向的判断会好一些 : if(res.stage === 'end' ||
!!res.redirectURL
)The text was updated successfully, but these errors were encountered: