Skip to content

Commit

Permalink
fix 200 to http.Status (#1067)
Browse files Browse the repository at this point in the history
  • Loading branch information
KeisukeYamashita authored and appleboy committed Aug 16, 2017
1 parent 52c2ed3 commit ecae34c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/app-engine/hello.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit ecae34c

Please sign in to comment.