Selaa lähdekoodia

fix return value for network.NodesLastModified

Matthew R Kasun 4 vuotta sitten
vanhempi
commit
3a702ab3f5
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  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)
 
 }