Explorar o código

fix return value for network.NodesLastModified

Matthew R Kasun %!s(int64=4) %!d(string=hai) anos
pai
achega
3a702ab3f5
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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.Write([]byte(string(network.NodesLastModified)))
+	json.NewEncoder(w).Encode(network.NodesLastModified)
 
 }