diff --git a/src/runtime/app/app.cc b/src/runtime/app/app.cc index 15910dc27..ca9ca3377 100644 --- a/src/runtime/app/app.cc +++ b/src/runtime/app/app.cc @@ -48,7 +48,7 @@ namespace ssc::runtime::app { gtk_init_check(0, nullptr); #elif SOCKET_RUNTIME_PLATFORM_MACOS this->delegate = [SSCApplicationDelegate new]; - this->delegate.app = this; + this->delegate.app = App::sharedApplication(); NSApplication.sharedApplication.delegate = this->delegate; #elif SOCKET_RUNTIME_PLATFORM_WINDOWS OleInitialize(nullptr); diff --git a/src/runtime/webview/scheme_handlers.cc b/src/runtime/webview/scheme_handlers.cc index a8e8e1730..fa445b91d 100644 --- a/src/runtime/webview/scheme_handlers.cc +++ b/src/runtime/webview/scheme_handlers.cc @@ -718,7 +718,7 @@ namespace ssc::runtime::webview { SchemeHandlers::Request::Builder& SchemeHandlers::Request::Builder::setBody (size_t size, const unsigned char* bytes) { if (this->request->method == "POST" || this->request->method == "PUT" || this->request->method == "PATCH") { if (size > 0 && bytes != nullptr) { - this->request->body.set(bytes, 0, size); + this->request->body = bytes::Buffer::from(bytes, size); } } return *this;