diff Core/HttpServer/HttpServer.cpp @ 3154:6e8822be2f08

Fix compatibility with DICOMweb plugin (allow multipart answers over HTTP Keep-Alive)
author Sebastien Jodogne <s.jodogne@gmail.com>
date Mon, 21 Jan 2019 12:09:04 +0100
parents 239331e4ee0b
children 6d558598d713
line wrap: on
line diff
--- a/Core/HttpServer/HttpServer.cpp	Sun Jan 20 14:02:49 2019 +0100
+++ b/Core/HttpServer/HttpServer.cpp	Mon Jan 21 12:09:04 2019 +0100
@@ -108,6 +108,16 @@
       {
         // Ignore this
       }
+
+      virtual void DisableKeepAlive()
+      {
+#if ORTHANC_ENABLE_MONGOOSE == 1
+        throw OrthancException(ErrorCode_NotImplemented,
+                               "Only available if using CivetWeb");
+#elif ORTHANC_ENABLE_CIVETWEB == 1
+        mg_disable_keep_alive(connection_);
+#endif
+      }
     };