mirror of
https://github.com/gin-gonic/gin.git
synced 2025-10-23 18:22:23 +08:00
Merge 52235568e0bbb06093c51e61a00e468a9bdbb862 into 1e88466d234a82ce4aeca904bce8a0b93fac3d42
This commit is contained in:
commit
09eaaa846a
@ -28,7 +28,7 @@ var (
|
||||
|
||||
func writeContentType(w http.ResponseWriter, value []string) {
|
||||
header := w.Header()
|
||||
if val := header["Content-Type"]; len(val) == 0 {
|
||||
header["Content-Type"] = value
|
||||
if header.Get("Content-Type") == "" {
|
||||
header.Set("Content-Type", value)
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user