# HG changeset patch # User Alain Mazy # Date 1547461646 -3600 # Node ID 56ddca73396c78253cc6d527075f3f41635f5a9f # Parent a750f11892ec4b217c0b20d84bd7b04083929c2d allow null callbacks for HTTP requests diff -r a750f11892ec -r 56ddca73396c Platforms/Wasm/WasmWebService.cpp --- a/Platforms/Wasm/WasmWebService.cpp Fri Dec 28 10:40:34 2018 +0100 +++ b/Platforms/Wasm/WasmWebService.cpp Mon Jan 14 11:27:26 2019 +0100 @@ -45,11 +45,7 @@ const char* uri, void* payload) { - if (failureCallable == NULL) - { - throw; - } - else + if (failureCallable != NULL) { reinterpret_cast*>(failureCallable)-> Apply(OrthancStone::IWebService::HttpRequestErrorMessage(uri, reinterpret_cast(payload))); @@ -77,11 +73,7 @@ const char* answerHeaders, void* payload) { - if (successCallable == NULL) - { - throw; - } - else + if (successCallable != NULL) { OrthancStone::IWebService::HttpHeaders headers;