Merge pull request #746 from gozssky/patch-1

Fix charset typo in swagger.go
This commit is contained in:
Juan Font 2022-08-18 12:23:45 +02:00 committed by GitHub
commit 61bb6292b7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -83,7 +83,7 @@ func SwaggerAPIv1(
writer http.ResponseWriter, writer http.ResponseWriter,
req *http.Request, req *http.Request,
) { ) {
writer.Header().Set("Content-Type", "application/json; charset=utf-88") writer.Header().Set("Content-Type", "application/json; charset=utf-8")
writer.WriteHeader(http.StatusOK) writer.WriteHeader(http.StatusOK)
if _, err := writer.Write(apiV1JSON); err != nil { if _, err := writer.Write(apiV1JSON); err != nil {
log.Error(). log.Error().