fixed GH# 251: HTTPStreamFactory::unregisterFactory missing implementation?

This commit is contained in:
Guenter Obiltschnig
2013-08-02 18:07:36 +02:00
parent 915265f2cb
commit 981b0a1ae4
5 changed files with 27 additions and 2 deletions

View File

@@ -181,8 +181,13 @@ std::istream* HTTPSStreamFactory::open(const URI& uri)
void HTTPSStreamFactory::registerFactory()
{
std::string https("https");
URIStreamOpener::defaultOpener().registerStreamFactory(https, new HTTPSStreamFactory);
URIStreamOpener::defaultOpener().registerStreamFactory("https", new HTTPSStreamFactory);
}
void HTTPSStreamFactory::unregisterFactory()
{
URIStreamOpener::defaultOpener().unregisterStreamFactory("https");
}