You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm experimenting with Gin and stumbled on some problems. The code below does not result in a Content-Type: application/json being set in the response.
func main() {
r := gin.Default()
r.GET("/test", func(c *gin.Context) {
c.JSON(200, gin.H{"status": "you are logged in"})
})
r.Run(":8082")
}
Hi,
I'm experimenting with Gin and stumbled on some problems. The code below does not result in a Content-Type: application/json being set in the response.
Response:
I've tried fixing the issue myself but i cannot find a way to set a header. All headers are just ignored.
Anyone else experiencing the same problem?
I'm on Go 1.1 on Windows so that might have something to do with it.
The text was updated successfully, but these errors were encountered: