File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -48,7 +48,7 @@ namespace ssc::runtime::app {
4848 gtk_init_check (0 , nullptr );
4949 #elif SOCKET_RUNTIME_PLATFORM_MACOS
5050 this ->delegate = [SSCApplicationDelegate new];
51- this ->delegate .app = this ;
51+ this ->delegate .app = App::sharedApplication () ;
5252 NSApplication.sharedApplication .delegate = this ->delegate ;
5353 #elif SOCKET_RUNTIME_PLATFORM_WINDOWS
5454 OleInitialize (nullptr );
Original file line number Diff line number Diff line change @@ -718,7 +718,7 @@ namespace ssc::runtime::webview {
718718 SchemeHandlers::Request::Builder& SchemeHandlers::Request::Builder::setBody (size_t size, const unsigned char * bytes) {
719719 if (this ->request ->method == " POST" || this ->request ->method == " PUT" || this ->request ->method == " PATCH" ) {
720720 if (size > 0 && bytes != nullptr ) {
721- this ->request ->body . set (bytes, 0 , size);
721+ this ->request ->body = bytes::Buffer::from (bytes, size);
722722 }
723723 }
724724 return *this ;
You can’t perform that action at this time.
0 commit comments