From 2e0c8f848f27d99e95fc9c6e86e4087de7820f10 Mon Sep 17 00:00:00 2001 From: Christophe Dumez Date: Sun, 6 Jun 2010 20:49:28 +0000 Subject: [PATCH] Fix Web UI authentication with Opera --- src/httpconnection.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/httpconnection.cpp b/src/httpconnection.cpp index 404d7a4fc..04683850f 100644 --- a/src/httpconnection.cpp +++ b/src/httpconnection.cpp @@ -155,7 +155,7 @@ void HttpConnection::respond() { qDebug("client IP: %s (%d failed attempts)", qPrintable(peer_ip), nb_fail+1); // Return unauthorized header 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(); return; }