]> git.openstreetmap.org Git - nominatim.git/blobdiff - lib-php/website/status.php
Merge remote-tracking branch 'upstream/master'
[nominatim.git] / lib-php / website / status.php
index 2839f72a6c1dcfc68156376098855330866559c3..8ab11cc40dfe1c3d97385ff78ac7851769f68fe3 100644 (file)
@@ -31,6 +31,7 @@ try {
         $aResponse = array(
                       'status' => 0,
                       'message' => 'OK',
+                      'server' => gethostname(),
                       'data_updated' => (new DateTime('@'.$epoch))->format(DateTime::RFC3339),
                       'software_version' => CONST_NominatimVersion
                      );
@@ -46,7 +47,8 @@ try {
     if ($sOutputFormat == 'json') {
         $aResponse = array(
                       'status' => $oErr->getCode(),
-                      'message' => $oErr->getMessage()
+                      'message' => $oErr->getMessage(),
+                      'server' => gethostname()
                      );
         javascript_renderData($aResponse);
     } else {