Skip to content

Commit 97701d0

Browse files
committed
Disable experimental HTTP cache support, bump uWS
1 parent b3948e6 commit 97701d0

File tree

3 files changed

+6
-5
lines changed

3 files changed

+6
-5
lines changed

src/AppWrapper.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -937,17 +937,17 @@ void uWS_App(const FunctionCallbackInfo<Value> &args) {
937937

938938
/* µWS itself will terminate if not responded and not attached
939939
* onAborted handler, so we can assume it's done */
940-
}, 13);
940+
}/*, 13*/);
941941

942942
args.GetReturnValue().Set(args.Holder());
943943

944944

945945
} else {
946-
uWS_App_get<APP>(&uWS::TemplatedApp<false, uWS::CachingApp<false>>::get, args);
946+
//uWS_App_get<APP>(&uWS::TemplatedApp<false, uWS::CachingApp<false>>::get, args);
947947
}
948948

949949
} else if constexpr (std::is_same<APP, uWS::SSLApp>::value) {
950-
uWS_App_get<APP>(&uWS::TemplatedApp<true, uWS::CachingApp<true>>::get, args);
950+
//uWS_App_get<APP>(&uWS::TemplatedApp<true, uWS::CachingApp<true>>::get, args);
951951
}
952952

953953
}, args.Data()));

src/HttpResponseWrapper.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,8 @@ struct HttpResponseWrapper {
4444
if constexpr (PROTOCOL == 2) {
4545
return (uWS::Http3Response *) res;
4646
} else if constexpr (PROTOCOL == 3) {
47-
return (uWS::CachingHttpResponse *) res;
47+
//return (uWS::CachingHttpResponse *) res; // is correct
48+
return (uWS::HttpResponse<PROTOCOL != 0> *) res; // not correct
4849
} else {
4950
return (uWS::HttpResponse<PROTOCOL != 0> *) res;
5051
}

0 commit comments

Comments
 (0)