macOS: Fix wxWebViewHandlerRequest::GetDataString
An additional call to wxWebViewHandlerRequest::GetDataString() would return an empty string because the underlying memory stream wasn't reset. Closes #23181.
This commit is contained in:
parent
e51bc73659
commit
12e65399e4
1 changed files with 2 additions and 0 deletions
|
|
@ -878,6 +878,8 @@ public:
|
|||
if (!m_data && m_request.HTTPBody)
|
||||
m_data = new wxMemoryInputStream(m_request.HTTPBody.bytes, m_request.HTTPBody.length);
|
||||
|
||||
if (m_data)
|
||||
m_data->SeekI(0);
|
||||
return m_data;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue