@@ -934,9 +934,10 @@ void uWS_App(const FunctionCallbackInfo<Value> &args) {
934934 /* All the http methods */
935935 appTemplate->PrototypeTemplate ()->Set (String::NewFromUtf8 (isolate, " get" , NewStringType::kNormal ).ToLocalChecked (), FunctionTemplate::New (isolate, [](auto &args) {
936936
937- /* Add non-cached variants */
937+ /* Is this non-SSL? */
938938 if constexpr (std::is_same<APP , uWS::App>::value) {
939939
940+ /* Did we get 3 arguments (cached registry)? */
940941 if (args.Length () == 3 ) {
941942
942943 /* Get secondsToExpiry */
@@ -993,11 +994,17 @@ void uWS_App(const FunctionCallbackInfo<Value> &args) {
993994
994995
995996 } else {
996- uWS_App_get<APP >(&uWS::TemplatedApp<false >::get, args);
997+ /* This is non-SSL but not using cache */
998+ // uWS_App_get<APP>(&uWS::TemplatedApp<false>::get, args);
999+
1000+ uWS_App_get<APP >(static_cast <APP && (APP ::*)(std::string, uWS::MoveOnlyFunction<void (uWS::HttpResponse<false > *, uWS::HttpRequest *)> &&)>(&APP ::get), args);
9971001 }
9981002
9991003 } else if constexpr (std::is_same<APP , uWS::SSLApp>::value) {
1000- uWS_App_get<APP >(&uWS::TemplatedApp<true >::get, args);
1004+ /* This is SSL and not using cache */
1005+ // uWS_App_get<APP>(&uWS::TemplatedApp<true>::get, args);
1006+
1007+ uWS_App_get<APP >(static_cast <APP && (APP ::*)(std::string, uWS::MoveOnlyFunction<void (uWS::HttpResponse<true > *, uWS::HttpRequest *)> &&)>(&APP ::get), args);
10011008 }
10021009
10031010 }, args.Data ()));
0 commit comments