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:
marian 2012-01-17 16:26:46 +00:00
parent 930c5b4447
commit 9ece20100f
1 changed files with 7 additions and 3 deletions

View File

@ -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;
}