mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-01-18 11:38:08 +00:00
Fixed another issue with ContentType & HeaderParam constructors doing parsing
This commit is contained in:
parent
57b07c4545
commit
5fd6a68b94
2 changed files with 2 additions and 2 deletions
|
|
@ -75,7 +75,7 @@ ContentType::ContentType (const string &contentType) : ClonableObject(*new Conte
|
|||
string token;
|
||||
do {
|
||||
posParam = params.find(";");
|
||||
if (posParam != string::npos) {
|
||||
if (posParam == string::npos) {
|
||||
token = params;
|
||||
} else {
|
||||
token = params.substr(0, posParam);
|
||||
|
|
|
|||
|
|
@ -46,7 +46,7 @@ HeaderParam::HeaderParam (const string ¶m) : ClonableObject(*new HeaderParam
|
|||
setName(param);
|
||||
} else {
|
||||
setName(param.substr(0, pos));
|
||||
setValue(param.substr(pos + 1, end));
|
||||
setValue(param.substr(pos + 1, end - (pos + 1)));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue