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:
Tobias Taschner 2023-01-27 12:02:07 +01:00 committed by Vadim Zeitlin
parent e51bc73659
commit 12e65399e4

View file

@ -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;
}