refactor: support AbortWithStatusJSON (#200)
This commit is contained in:
5
vendor/github.com/gin-gonic/gin/render/text.go
generated
vendored
5
vendor/github.com/gin-gonic/gin/render/text.go
generated
vendored
@@ -22,9 +22,12 @@ func (r String) Render(w http.ResponseWriter) error {
|
||||
return nil
|
||||
}
|
||||
|
||||
func (r String) WriteContentType(w http.ResponseWriter) {
|
||||
writeContentType(w, plainContentType)
|
||||
}
|
||||
|
||||
func WriteString(w http.ResponseWriter, format string, data []interface{}) {
|
||||
writeContentType(w, plainContentType)
|
||||
|
||||
if len(data) > 0 {
|
||||
fmt.Fprintf(w, format, data...)
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user