Browse Source

fix return value for network.NodesLastModified

Matthew R Kasun 4 years ago
parent
commit
3a702ab3f5
1 changed files with 1 additions and 1 deletions
  1. 1 1
      controllers/nodeHttpController.go

+ 1 - 1
controllers/nodeHttpController.go

@@ -440,7 +440,7 @@ func getLastModified(w http.ResponseWriter, r *http.Request) {
 	}
 	}
 
 
 	w.WriteHeader(http.StatusOK)
 	w.WriteHeader(http.StatusOK)
-	w.Write([]byte(string(network.NodesLastModified)))
+	json.NewEncoder(w).Encode(network.NodesLastModified)
 
 
 }
 }