diff OrthancFramework/Sources/HttpServer/HttpToolbox.cpp @ 4327:9684a690ca63

fix link errors on wasm unit tests
author Sebastien Jodogne <s.jodogne@gmail.com>
date Tue, 24 Nov 2020 20:53:21 +0100
parents 83c5bd439fcc
children 9dc0e42f868b
line wrap: on
line diff
--- a/OrthancFramework/Sources/HttpServer/HttpToolbox.cpp	Tue Nov 24 19:43:10 2020 +0100
+++ b/OrthancFramework/Sources/HttpServer/HttpToolbox.cpp	Tue Nov 24 20:53:21 2020 +0100
@@ -23,18 +23,17 @@
 #include "../PrecompiledHeaders.h"
 #include "HttpToolbox.h"
 
+#include "HttpOutput.h"
+#include "StringHttpOutput.h"
+
 #include <stdio.h>
 #include <string.h>
 #include <iostream>
 
-#include "HttpOutput.h"
-#include "StringHttpOutput.h"
-
 
 static const char* LOCALHOST = "127.0.0.1";
 
 
-
 namespace Orthanc
 {
   static void SplitGETNameValue(IHttpHandler::GetArguments& result,
@@ -188,7 +187,6 @@
   }
 
 
-#if ORTHANC_SANDBOXED != 1
   bool HttpToolbox::SimpleGet(std::string& result,
                               IHttpHandler& handler,
                               RequestOrigin origin,
@@ -213,10 +211,8 @@
       return false;
     }
   }
-#endif
 
 
-#if ORTHANC_SANDBOXED != 1
   static bool SimplePostOrPut(std::string& result,
                               IHttpHandler& handler,
                               RequestOrigin origin,
@@ -245,10 +241,8 @@
       return false;
     }
   }
-#endif
 
 
-#if ORTHANC_SANDBOXED != 1
   bool HttpToolbox::SimplePost(std::string& result,
                                IHttpHandler& handler,
                                RequestOrigin origin,
@@ -259,10 +253,8 @@
   {
     return SimplePostOrPut(result, handler, origin, HttpMethod_Post, uri, bodyData, bodySize, httpHeaders);
   }
-#endif
 
 
-#if ORTHANC_SANDBOXED != 1
   bool HttpToolbox::SimplePut(std::string& result,
                               IHttpHandler& handler,
                               RequestOrigin origin,
@@ -273,10 +265,8 @@
   {
     return SimplePostOrPut(result, handler, origin, HttpMethod_Put, uri, bodyData, bodySize, httpHeaders);
   }
-#endif
-  
 
-#if ORTHANC_SANDBOXED != 1
+
   bool HttpToolbox::SimpleDelete(IHttpHandler& handler,
                                  RequestOrigin origin,
                                  const std::string& uri,
@@ -293,5 +283,4 @@
     return handler.Handle(http, origin, LOCALHOST, "", HttpMethod_Delete, curi, 
                           httpHeaders, getArguments, NULL /* no body for DELETE */, 0);
   }
-#endif
 }