Move GetBytesExpectedToReceive() impl to base class

This commit is contained in:
Tobias Taschner
2018-11-02 21:24:10 +01:00
parent 2f4be7e1ae
commit ab544da1d2
4 changed files with 9 additions and 6 deletions

View File

@@ -102,6 +102,14 @@ void wxWebRequest::SetData(wxSharedPtr<wxInputStream> dataStream, const wxString
SetHeader("Content-Type", contentType);
}
wxFileOffset wxWebRequest::GetBytesExpectedToReceive() const
{
if ( GetResponse() )
return GetResponse()->GetContentLength();
else
return -1;
}
void wxWebRequest::SetState(State state, const wxString & failMsg)
{
// Add a reference while the request is active