Skip to content

Commit

Permalink
redirect from 308 -->307
Browse files Browse the repository at this point in the history
  • Loading branch information
ningyangyang committed Jun 11, 2020
1 parent 8f69276 commit 45b696e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/web/controller/pushgateway/pgw_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@ func PushMetricsRedirect(c *gin.Context) {
nextUrl := "http://" + node + path
log.Printf("[PushMetrics][request_path:%s][redirect_url:%s]", path, nextUrl)
//c.Redirect(http.StatusMovedPermanently, nextUrl)
//c.Redirect(http.StatusTemporaryRedirect, nextUrl)
c.Redirect(http.StatusPermanentRedirect, nextUrl)
c.Redirect(http.StatusTemporaryRedirect, nextUrl)
//c.Redirect(http.StatusPermanentRedirect, nextUrl)
c.Abort()

}

0 comments on commit 45b696e

Please sign in to comment.