]> git.nbdom.net Git - nb.git/commitdiff
www/dbq/dbq.php
authorNicolas Boisselier <nicolas.boisselier@gmail.com>
Thu, 9 Feb 2017 09:09:34 +0000 (09:09 +0000)
committerNicolas Boisselier <nicolas.boisselier@gmail.com>
Thu, 9 Feb 2017 09:09:34 +0000 (09:09 +0000)
www/dbq/dbq.php

index 9efa7df176bffc8c82ac6ce628b87a47e9479618..7ca9f46710912eea020cc42d4790caeb4479d5ad 100644 (file)
@@ -460,12 +460,6 @@ class DbQ extends nb {
   public function status() { #$this->perm--;
     $rows = [];
 
-    // Client headers
-    foreach ($this->client_header() as $k=>$v) $rows[] = [
-      'name' => 'client.header.'.$k,
-      'value' => ( is_scalar($v) ? $v : json_encode($v) ),
-    ];
-
     // Server
     foreach ([
       'addr',
@@ -481,6 +475,12 @@ class DbQ extends nb {
       $rows[] = [ 'name' => 'server.'.$k, 'value' => $v ];
     }
 
+    // Client headers
+    foreach ($this->client_header() as $k=>$v) $rows[] = [
+      'name' => 'client.header.'.$k,
+      'value' => ( is_scalar($v) ? $v : json_encode($v) ),
+    ];
+
     // Admin or bye !
     if ($this->perm < self::ADMIN) return $rows;