mirror of
https://github.com/pocoproject/poco.git
synced 2025-04-17 07:13:27 +02:00
Fix auto_ptr<char[]> by auto_ptr<char*>
This commit is contained in:
parent
a9d3a17557
commit
df277681a0
@ -428,9 +428,10 @@ void HTTPSClientSessionTest::testUnknownContentLength()
|
||||
assertTrue (ostr.str() == HTTPSTestServer::SMALL_BODY);
|
||||
}
|
||||
|
||||
|
||||
#include <iostream>
|
||||
void HTTPSClientSessionTest::testServerAbort()
|
||||
{
|
||||
try {
|
||||
HTTPSTestServer srv;
|
||||
HTTPSClientSession s("127.0.0.1", srv.port());
|
||||
HTTPRequest request(HTTPRequest::HTTP_GET, "/nolength/connection/abort");
|
||||
@ -444,6 +445,9 @@ void HTTPSClientSessionTest::testServerAbort()
|
||||
assertTrue (ostr.str() == HTTPSTestServer::SMALL_BODY);
|
||||
assertTrue ( dynamic_cast<const Poco::Net::SSLConnectionUnexpectedlyClosedException*>(
|
||||
s.networkException()) != NULL );
|
||||
} catch(Poco::Exception& e) {
|
||||
std::cout << e.message() << std::endl;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user