Skip to content

Commit f504136

Browse files
committed
fix(internal/docs): 修正未输出正确 content-type 的错误
1 parent e9dda2a commit f504136

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/docs/docs.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,8 +69,8 @@ func embeddedHandler(stylesheet bool) http.Handler {
6969
return
7070
}
7171

72-
w.WriteHeader(http.StatusOK)
7372
w.Header().Set("Content-Type", info.ContentType)
73+
w.WriteHeader(http.StatusOK)
7474
w.Write(info.Content)
7575
return
7676
}

0 commit comments

Comments
 (0)