X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FScripting%2FNasalHTTP.cxx;h=ae55204acd1f033197ae5b627de56c5e5459aed9;hb=99fd9513d96a00b99e0023a40cbfaed1123453fc;hp=fbee30a0f7cfb6a23379421f0d457ef5a922bf18;hpb=881df711ba5be8a8c0bc65f2126a0dcb63865df9;p=flightgear.git diff --git a/src/Scripting/NasalHTTP.cxx b/src/Scripting/NasalHTTP.cxx index fbee30a0f..ae55204ac 100644 --- a/src/Scripting/NasalHTTP.cxx +++ b/src/Scripting/NasalHTTP.cxx @@ -81,8 +81,6 @@ static naRef f_http_load(const nasal::CallContext& ctx) //------------------------------------------------------------------------------ naRef initNasalHTTP(naRef globals, naContext c) { - if (!NasalRequest::isInit()) { - using simgear::HTTP::Request; NasalRequest::init("http.Request") .member("url", &Request::url) @@ -108,8 +106,6 @@ naRef initNasalHTTP(naRef globals, naContext c) NasalMemoryRequest::init("http.MemoryRequest") .bases() .member("response", &MemoryRequest::responseBody); - - } nasal::Hash globals_module(globals, c), http = globals_module.createHash("http");