SeraphJACK преди 3 години
родител
ревизия
fee26bd73d
Signed by: SeraphJACK <seraphjack@outlook.com> GPG Key ID: 14162B46567AB06F
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. +1
    -1
      http/result.go

+ 1
- 1
http/result.go Целия файл

@@ -12,8 +12,8 @@ func checkResult(w http.ResponseWriter, _ *http.Request) {
w.WriteHeader(500)
_, _ = fmt.Fprintf(w, "internal server error")
} else {
w.WriteHeader(200)
w.Header().Set("Content-Type", "application/json; charset=utf-8")
w.WriteHeader(200)
_, _ = w.Write(res)
}
}

Loading…
Отказ
Запис