mirror of
https://github.com/pocoproject/poco.git
synced 2025-10-29 04:17:55 +01:00
latest changes from main rep
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
//
|
||||
// MediaType.cpp
|
||||
//
|
||||
// $Id: //poco/Main/Net/src/MediaType.cpp#7 $
|
||||
// $Id: //poco/Main/Net/src/MediaType.cpp#8 $
|
||||
//
|
||||
// Library: Net
|
||||
// Package: Messages
|
||||
@@ -38,7 +38,7 @@
|
||||
#include "Poco/Net/MessageHeader.h"
|
||||
#include "Poco/String.h"
|
||||
#include <algorithm>
|
||||
#include <ctype.h>
|
||||
#include <cctype>
|
||||
|
||||
|
||||
using Poco::icompare;
|
||||
@@ -179,10 +179,10 @@ void MediaType::parse(const std::string& mediaType)
|
||||
_parameters.clear();
|
||||
std::string::const_iterator it = mediaType.begin();
|
||||
std::string::const_iterator end = mediaType.end();
|
||||
while (it != end && isspace(*it)) ++it;
|
||||
while (it != end && std::isspace(*it)) ++it;
|
||||
while (it != end && *it != '/') _type += *it++;
|
||||
if (it != end) ++it;
|
||||
while (it != end && *it != ';' && !isspace(*it)) _subType += *it++;
|
||||
while (it != end && *it != ';' && !std::isspace(*it)) _subType += *it++;
|
||||
while (it != end && *it != ';') ++it;
|
||||
MessageHeader::splitParameters(it, end, _parameters);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user