Spaces:
Paused
Paused
fix fprintf keys
Browse files- internal/handler/keys.go +1 -1
internal/handler/keys.go
CHANGED
|
@@ -112,7 +112,7 @@ func HandleGenKey(w http.ResponseWriter, r *http.Request) {
|
|
| 112 |
}
|
| 113 |
key := GenerateKey(name)
|
| 114 |
w.Header().Set("Content-Type", "application/json")
|
| 115 |
-
fmt.Fprintf(w, "{"key":"
|
| 116 |
}
|
| 117 |
|
| 118 |
func HandleStats(w http.ResponseWriter, r *http.Request) {
|
|
|
|
| 112 |
}
|
| 113 |
key := GenerateKey(name)
|
| 114 |
w.Header().Set("Content-Type", "application/json")
|
| 115 |
+
fmt.Fprintf(w, "%s", "{"key":""+key+"","name":""+name+""}")
|
| 116 |
}
|
| 117 |
|
| 118 |
func HandleStats(w http.ResponseWriter, r *http.Request) {
|