mirror of
https://github.com/pocoproject/poco.git
synced 2025-10-18 11:39:00 +02:00
formatting fixes
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
//
|
//
|
||||||
// HTTPCookie.h
|
// HTTPCookie.h
|
||||||
//
|
//
|
||||||
// $Id: //poco/1.4/Net/include/Poco/Net/HTTPCookie.h#1 $
|
// $Id: //poco/1.4/Net/include/Poco/Net/HTTPCookie.h#2 $
|
||||||
//
|
//
|
||||||
// Library: Net
|
// Library: Net
|
||||||
// Package: HTTP
|
// Package: HTTP
|
||||||
@@ -261,6 +261,7 @@ inline const std::string& HTTPCookie::getPath() const
|
|||||||
return _path;
|
return _path;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
inline const std::string& HTTPCookie::getPriority() const
|
inline const std::string& HTTPCookie::getPriority() const
|
||||||
{
|
{
|
||||||
return _priority;
|
return _priority;
|
||||||
|
@@ -1,7 +1,7 @@
|
|||||||
//
|
//
|
||||||
// HTTPCookie.cpp
|
// HTTPCookie.cpp
|
||||||
//
|
//
|
||||||
// $Id: //poco/1.4/Net/src/HTTPCookie.cpp#1 $
|
// $Id: //poco/1.4/Net/src/HTTPCookie.cpp#3 $
|
||||||
//
|
//
|
||||||
// Library: Net
|
// Library: Net
|
||||||
// Package: HTTP
|
// Package: HTTP
|
||||||
@@ -102,7 +102,7 @@ HTTPCookie::HTTPCookie(const NameValueCollection& nvc):
|
|||||||
{
|
{
|
||||||
setPath(value);
|
setPath(value);
|
||||||
}
|
}
|
||||||
else if (icompare(name, "Priority") == 0)
|
else if (icompare(name, "priority") == 0)
|
||||||
{
|
{
|
||||||
setPriority(value);
|
setPriority(value);
|
||||||
}
|
}
|
||||||
@@ -223,6 +223,7 @@ void HTTPCookie::setPath(const std::string& path)
|
|||||||
_path = path;
|
_path = path;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
void HTTPCookie::setPriority(const std::string& priority)
|
void HTTPCookie::setPriority(const std::string& priority)
|
||||||
{
|
{
|
||||||
_priority = priority;
|
_priority = priority;
|
||||||
|
@@ -1,7 +1,7 @@
|
|||||||
//
|
//
|
||||||
// HTTPCookieTest.cpp
|
// HTTPCookieTest.cpp
|
||||||
//
|
//
|
||||||
// $Id: //poco/1.4/Net/testsuite/src/HTTPCookieTest.cpp#1 $
|
// $Id: //poco/1.4/Net/testsuite/src/HTTPCookieTest.cpp#2 $
|
||||||
//
|
//
|
||||||
// Copyright (c) 2005-2006, Applied Informatics Software Engineering GmbH.
|
// Copyright (c) 2005-2006, Applied Informatics Software Engineering GmbH.
|
||||||
// and Contributors.
|
// and Contributors.
|
||||||
@@ -44,6 +44,7 @@
|
|||||||
#include <cstdlib>
|
#include <cstdlib>
|
||||||
#include <sstream>
|
#include <sstream>
|
||||||
|
|
||||||
|
|
||||||
using Poco::Timestamp;
|
using Poco::Timestamp;
|
||||||
using Poco::Timespan;
|
using Poco::Timespan;
|
||||||
using Poco::DateTimeFormatter;
|
using Poco::DateTimeFormatter;
|
||||||
@@ -104,8 +105,7 @@ void HTTPCookieTest::testCookie()
|
|||||||
cookie.setPriority("Medium");
|
cookie.setPriority("Medium");
|
||||||
assert (cookie.toString() == "name=\"value\"; Comment=\"comment\"; Domain=\"appinf.com\"; Path=\"/\"; Priority=\"Medium\"; Max-Age=\"100\"; HttpOnly; Version=\"1\"");
|
assert (cookie.toString() == "name=\"value\"; Comment=\"comment\"; Domain=\"appinf.com\"; Path=\"/\"; Priority=\"Medium\"; Max-Age=\"100\"; HttpOnly; Version=\"1\"");
|
||||||
cookie.setPriority("High");
|
cookie.setPriority("High");
|
||||||
assert (cookie.toString() == "name=\"value\"; Comment=\"comment\"; Domain=\"appinf.com\"; Path=\"/\"; Priority=\"High\"; Max-Age=\"100\"; HttpOnly; Version=\"1\"");
|
assert (cookie.toString() == "name=\"value\"; Comment=\"comment\"; Domain=\"appinf.com\"; Path=\"/\"; Priority=\"High\"; Max-Age=\"100\"; HttpOnly; Version=\"1\"");
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@@ -1,7 +1,7 @@
|
|||||||
//
|
//
|
||||||
// HTTPCookieTest.h
|
// HTTPCookieTest.h
|
||||||
//
|
//
|
||||||
// $Id: //poco/1.4/Net/testsuite/src/HTTPCookieTest.h#1 $
|
// $Id: //poco/1.4/Net/testsuite/src/HTTPCookieTest.h#2 $
|
||||||
//
|
//
|
||||||
// Definition of the HTTPCookieTest class.
|
// Definition of the HTTPCookieTest class.
|
||||||
//
|
//
|
||||||
|
Reference in New Issue
Block a user