mirror of
https://github.com/cefsharp/CefSharp.git
synced 2026-12-06 12:09:40 +00:00
Change ResourceHandler to IResourceHandler
Add StatusText
This commit is contained in:
@@ -30,6 +30,7 @@ namespace CefSharp
|
||||
_mime_type = StringUtils::ToNative(response->MimeType);
|
||||
_stream = response->ResponseStream;
|
||||
_statusCode = response->StatusCode;
|
||||
_statusText = StringUtils::ToNative(response->StatusText);
|
||||
_redirectUrl = StringUtils::ToNative(response->RedirectUrl);
|
||||
_contentLength = response->ContentLength;
|
||||
_closeStream = response->CloseStream;
|
||||
@@ -51,6 +52,7 @@ namespace CefSharp
|
||||
{
|
||||
response->SetMimeType(_mime_type);
|
||||
response->SetStatus(_statusCode > 0 ? _statusCode : 200);
|
||||
response->SetStatusText(_statusText);
|
||||
response->SetHeaderMap(_headers);
|
||||
response_length = _contentLength >= 0 ? _contentLength : SizeFromStream();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user