Don't quote the qop and nc parameters in Authorization response. Patch suggested by billsimon in Mantis issue #285.
git-svn-id: http://voip.null.ro/svn/yate@4807 acf43c95-373e-0410-b603-e72c3f656dc1
This commit is contained in:
parent
930c5b4447
commit
9ece20100f
|
@ -692,10 +692,14 @@ MimeAuthLine* SIPMessage::buildAuth(const String& username, const String& passwo
|
|||
if (opaque)
|
||||
auth->setParam(opaque->name(),*opaque);
|
||||
if (qop) {
|
||||
auth->setParam("qop",MimeHeaderLine::quote(qop));
|
||||
auth->setParam("qop",qop);
|
||||
NamedIterator iter(qop);
|
||||
for (const NamedString* ns = 0; 0 != (ns = iter.get());)
|
||||
auth->setParam(ns->name(),MimeHeaderLine::quote(*ns));
|
||||
for (const NamedString* ns = 0; 0 != (ns = iter.get());) {
|
||||
if (ns->name() == YSTRING("nc"))
|
||||
auth->setParam(ns->name(),*ns);
|
||||
else
|
||||
auth->setParam(ns->name(),MimeHeaderLine::quote(*ns));
|
||||
}
|
||||
}
|
||||
return auth;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue