Explorar o código

fix 200 to http.Status (#1067)

keke %!s(int64=8) %!d(string=hai) anos
pai
achega
ecae34c4e1
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      examples/app-engine/hello.go

+ 2 - 2
examples/app-engine/hello.go

@@ -13,10 +13,10 @@ func init() {
 
 	// Define your handlers
 	r.GET("/", func(c *gin.Context) {
-		c.String(200, "Hello World!")
+		c.String(http.StatusOK, "Hello World!")
 	})
 	r.GET("/ping", func(c *gin.Context) {
-		c.String(200, "pong")
+		c.String(http.StatusOK, "pong")
 	})
 
 	// Handle all requests using net/http