These are chat archives for gin-gonic/gin

31st
May 2018
lxn2
@lxn2
May 31 2018 18:26
Hi, I'm new to gin. I am working in lambda/apigateway and want to return a redirect response. c.Redirect(http.StatusTemporaryRedirect, "http://www.facebook.com") and c.Writer.WriteHeader(307) c.Writer.Header().Add("Location", "http://www.facebook.com") but the http.Response status code shows 200 instead of 307. Is gin rendering the location and returning the status of that instead?