@@ -158,7 +158,7 @@ func (controller *ProxyController) proxyHandler(c *gin.Context) {
158158 return
159159 }
160160
161- c .Redirect (http .StatusTemporaryRedirect , redirectURL )
161+ c .Redirect (http .StatusFound , redirectURL )
162162 return
163163 }
164164
@@ -207,7 +207,7 @@ func (controller *ProxyController) proxyHandler(c *gin.Context) {
207207 return
208208 }
209209
210- c .Redirect (http .StatusTemporaryRedirect , redirectURL )
210+ c .Redirect (http .StatusFound , redirectURL )
211211 return
212212 }
213213
@@ -251,7 +251,7 @@ func (controller *ProxyController) proxyHandler(c *gin.Context) {
251251 return
252252 }
253253
254- c .Redirect (http .StatusTemporaryRedirect , redirectURL )
254+ c .Redirect (http .StatusFound , redirectURL )
255255 return
256256 }
257257 }
@@ -300,7 +300,7 @@ func (controller *ProxyController) proxyHandler(c *gin.Context) {
300300 return
301301 }
302302
303- c .Redirect (http .StatusTemporaryRedirect , redirectURL )
303+ c .Redirect (http .StatusFound , redirectURL )
304304}
305305
306306func (controller * ProxyController ) setHeaders (c * gin.Context , acls * model.App ) {
@@ -336,7 +336,7 @@ func (controller *ProxyController) handleError(c *gin.Context, proxyCtx ProxyCon
336336 return
337337 }
338338
339- c .Redirect (http .StatusTemporaryRedirect , redirectURL )
339+ c .Redirect (http .StatusFound , redirectURL )
340340}
341341
342342func (controller * ProxyController ) getHeader (c * gin.Context , header string ) (string , bool ) {
0 commit comments