]> git.mxchange.org Git - flightgear.git/blobdiff - src/Scripting/NasalHTTP.cxx
Metar: finalise-position fast if Metar fails
[flightgear.git] / src / Scripting / NasalHTTP.cxx
index fbee30a0f7cfb6a23379421f0d457ef5a922bf18..ae55204acd1f033197ae5b627de56c5e5459aed9 100644 (file)
@@ -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<NasalRequest>()
     .member("response", &MemoryRequest::responseBody);
-
-    }
     
   nasal::Hash globals_module(globals, c),
               http = globals_module.createHash("http");