Update src/common/webrequest.cpp
Co-Authored-By: TcT2k <TcT2k@users.noreply.github.com>
This commit is contained in:
committed by
Tobias Taschner
parent
58ad18adf3
commit
2f4be7e1ae
@@ -254,7 +254,7 @@ wxInputStream * wxWebResponse::GetStream() const
|
|||||||
if ( !m_stream.get() )
|
if ( !m_stream.get() )
|
||||||
{
|
{
|
||||||
// Create stream
|
// Create stream
|
||||||
switch (m_request.GetStorage())
|
switch ( m_request.GetStorage() )
|
||||||
{
|
{
|
||||||
case wxWebRequest::Storage_Memory:
|
case wxWebRequest::Storage_Memory:
|
||||||
m_stream.reset(new wxMemoryInputStream(m_readBuffer.GetData(), m_readBuffer.GetDataLen()));
|
m_stream.reset(new wxMemoryInputStream(m_readBuffer.GetData(), m_readBuffer.GetDataLen()));
|
||||||
@@ -408,15 +408,15 @@ void wxWebSession::InitFactoryMap()
|
|||||||
{
|
{
|
||||||
#if wxUSE_WEBREQUEST_WINHTTP
|
#if wxUSE_WEBREQUEST_WINHTTP
|
||||||
RegisterFactory(wxWebSessionBackendWinHTTP,
|
RegisterFactory(wxWebSessionBackendWinHTTP,
|
||||||
wxSharedPtr<wxWebSessionFactory>(new wxWebSessionFactoryWinHTTP()));
|
wxSharedPtr<wxWebSessionFactory>(new wxWebSessionFactoryWinHTTP()));
|
||||||
#endif
|
#endif
|
||||||
#if wxUSE_WEBREQUEST_URLSESSION
|
#if wxUSE_WEBREQUEST_URLSESSION
|
||||||
RegisterFactory(wxWebSessionBackendURLSession,
|
RegisterFactory(wxWebSessionBackendURLSession,
|
||||||
wxSharedPtr<wxWebSessionFactory>(new wxWebSessionFactoryURLSession()));
|
wxSharedPtr<wxWebSessionFactory>(new wxWebSessionFactoryURLSession()));
|
||||||
#endif
|
#endif
|
||||||
#if wxUSE_WEBREQUEST_CURL
|
#if wxUSE_WEBREQUEST_CURL
|
||||||
RegisterFactory(wxWebSessionBackendCURL,
|
RegisterFactory(wxWebSessionBackendCURL,
|
||||||
wxSharedPtr<wxWebSessionFactory>(new wxWebSessionFactoryCURL()));
|
wxSharedPtr<wxWebSessionFactory>(new wxWebSessionFactoryCURL()));
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user