3
0
mirror of https://github.com/gin-gonic/gin.git synced 2025-04-06 03:57:46 +08:00

Update README.md

Fix a typo in Redirects section.
This commit is contained in:
梦溪笔谈 2014-08-21 21:32:32 +08:00
parent 2d94e27243
commit 5092886e99

@ -324,12 +324,13 @@ func main() {
Issuing a HTTP redirect is easy:
```r.GET("/test", func(c *gin.Context) {
```go
r.GET("/test", func(c *gin.Context) {
c.Redirect(301, "http://www.google.com/")
})
Both internal and external locations are supported.
```
Both internal and external locations are supported.
#### Custom Middlewares