BUGFIX: Fix Web UI authentication with Opera Browser

This commit is contained in:
Christophe Dumez
2010-06-06 20:51:43 +00:00
parent 30c4c62d2e
commit 9650b268b2
2 changed files with 3 additions and 2 deletions

View File

@@ -2,7 +2,8 @@
- FEATURE: Official support for Win32 platform - FEATURE: Official support for Win32 platform
- BUGFIX: Fix torrent availability computation (closes #587337) - BUGFIX: Fix torrent availability computation (closes #587337)
- BUGFIX: Disable torrent addition dialog as a default - BUGFIX: Disable torrent addition dialog as a default
- BUGFIX: Fix compatibility with non-unicode systems - BUGFIX: Fix Web UI authentication with Opera Browser
- BUGFIX: Fix compatibility with non UTF-8 systems
* Mon May 24 2010 - Christophe Dumez <chris@qbittorrent.org> - v2.2.8 * Mon May 24 2010 - Christophe Dumez <chris@qbittorrent.org> - v2.2.8
- BUGFIX: ETA for finished torrent is now 0 instead of Infinite (closes #583704) - BUGFIX: ETA for finished torrent is now 0 instead of Infinite (closes #583704)

View File

@@ -155,7 +155,7 @@ void HttpConnection::respond() {
qDebug("client IP: %s (%d failed attempts)", qPrintable(peer_ip), nb_fail+1); qDebug("client IP: %s (%d failed attempts)", qPrintable(peer_ip), nb_fail+1);
// Return unauthorized header // Return unauthorized header
generator.setStatusLine(401, "Unauthorized"); generator.setStatusLine(401, "Unauthorized");
generator.setValue("WWW-Authenticate", "Digest realm=\""+QString(QBT_REALM)+"\", nonce=\""+parent->generateNonce()+"\", algorithm=\"MD5\", qop=\"auth\""); generator.setValue("WWW-Authenticate", "Digest realm=\""+QString(QBT_REALM)+"\", nonce=\""+parent->generateNonce()+"\", opaque=\""+parent->generateNonce()+"\", stale=\"false\", algorithm=\"MD5\", qop=\"auth\"");
write(); write();
return; return;
} }