mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-07-11 22:03:01 -06:00
.Core: HttpRequest fix
git-svn-id: svn://ultimatepp.org/upp/trunk@4964 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
3135cd0bf8
commit
0d291220fa
3 changed files with 102 additions and 108 deletions
|
|
@ -659,13 +659,11 @@ void HttpRequest::Finish()
|
|||
#endif
|
||||
}
|
||||
Close();
|
||||
if(cookies)
|
||||
CopyCookies();
|
||||
CopyCookies();
|
||||
if(status_code == 401 && !IsNull(username)) {
|
||||
String authenticate = header["www-authenticate"];
|
||||
if(authenticate.GetCount() && redirect_count++ < max_redirects) {
|
||||
LLOG("HTTP auth digest");
|
||||
CopyCookies();
|
||||
Digest(CalculateDigest(authenticate));
|
||||
Start();
|
||||
return;
|
||||
|
|
@ -676,7 +674,6 @@ void HttpRequest::Finish()
|
|||
if(url.GetCount() && redirect_count++ < max_redirects) {
|
||||
LLOG("--- HTTP redirect " << url);
|
||||
Url(url);
|
||||
CopyCookies();
|
||||
Start();
|
||||
retry_count = 0;
|
||||
return;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue