-
Notifications
You must be signed in to change notification settings - Fork 153
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
httpsession: prep work for supporting fetches other than next #48065
Conversation
@@ -1232,114 +1242,121 @@ class HttpSession::Private : public QObject | |||
return; | |||
} | |||
|
|||
if(outReq->bytesAvailable() > 0) | |||
if(state == Proxying) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this section is simply an indentation (and assertion of the state value)
// apply ProxyContent filters of all channels | ||
QStringList allFilters; | ||
foreach(const Instruct::Channel &c, instruct.channels) | ||
if(state == Proxying) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
another indentation based on state value
|
||
log_debug("httpsession: failed to retrieve next link"); | ||
if(state == Proxying) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
another indentation based on state value
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The moves in here look good to me, and pretty easily traceable, thanks Justin!
This reworks the next link handling in
HttpSession
to make it reusable for other things in the future. It should not introduce any change in behavior. Someif(state == Proxying)
conditionals are added in places wherestate
is known/assumed to already be of that value.