# gin **Repository Path**: simon_git_code/gin ## Basic Information - **Project Name**: gin - **Description**: go gin框架v1.9.1修改版 - **Primary Language**: Unknown - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2024-11-27 - **Last Updated**: 2024-11-27 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # gin ### go gin框架v1.9.1修改版 #### 1、fatal error: concurrent map read and map write /github.com/gin-gonic/gin/render/render.go:38 ``` func writeContentType(w http.ResponseWriter, value []string) { header := w.Header() if val := header["Content-Type"]; len(val) == 0 { header["Content-Type"] = value } } ``` 改为: ``` func writeContentType(w http.ResponseWriter, value []string) { header := w.Header() RWMutex.Lock() defer RWMutex.Unlock() if val := header["Content-Type"]; len(val) == 0 { header["Content-Type"] = value } } ```