mirror of
https://github.com/pocoproject/poco.git
synced 2025-01-18 08:22:37 +01:00
formatting fixes
This commit is contained in:
parent
005a5d7ee1
commit
3ed477ce10
@ -1,7 +1,7 @@
|
||||
//
|
||||
// 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
|
||||
// Package: HTTP
|
||||
@ -261,6 +261,7 @@ inline const std::string& HTTPCookie::getPath() const
|
||||
return _path;
|
||||
}
|
||||
|
||||
|
||||
inline const std::string& HTTPCookie::getPriority() const
|
||||
{
|
||||
return _priority;
|
||||
|
@ -1,7 +1,7 @@
|
||||
//
|
||||
// HTTPCookie.cpp
|
||||
//
|
||||
// $Id: //poco/1.4/Net/src/HTTPCookie.cpp#1 $
|
||||
// $Id: //poco/1.4/Net/src/HTTPCookie.cpp#3 $
|
||||
//
|
||||
// Library: Net
|
||||
// Package: HTTP
|
||||
@ -102,7 +102,7 @@ HTTPCookie::HTTPCookie(const NameValueCollection& nvc):
|
||||
{
|
||||
setPath(value);
|
||||
}
|
||||
else if (icompare(name, "Priority") == 0)
|
||||
else if (icompare(name, "priority") == 0)
|
||||
{
|
||||
setPriority(value);
|
||||
}
|
||||
@ -223,6 +223,7 @@ void HTTPCookie::setPath(const std::string& path)
|
||||
_path = path;
|
||||
}
|
||||
|
||||
|
||||
void HTTPCookie::setPriority(const std::string& priority)
|
||||
{
|
||||
_priority = priority;
|
||||
|
@ -1,7 +1,7 @@
|
||||
//
|
||||
// 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.
|
||||
// and Contributors.
|
||||
@ -44,6 +44,7 @@
|
||||
#include <cstdlib>
|
||||
#include <sstream>
|
||||
|
||||
|
||||
using Poco::Timestamp;
|
||||
using Poco::Timespan;
|
||||
using Poco::DateTimeFormatter;
|
||||
@ -104,8 +105,7 @@ void HTTPCookieTest::testCookie()
|
||||
cookie.setPriority("Medium");
|
||||
assert (cookie.toString() == "name=\"value\"; Comment=\"comment\"; Domain=\"appinf.com\"; Path=\"/\"; Priority=\"Medium\"; Max-Age=\"100\"; HttpOnly; Version=\"1\"");
|
||||
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
|
||||
//
|
||||
// $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.
|
||||
//
|
||||
|
Loading…
x
Reference in New Issue
Block a user