code.gitea.io/gitea@v1.19.3/modules/test/utils.go (about) 1 // Copyright 2017 The Gitea Authors. All rights reserved. 2 // SPDX-License-Identifier: MIT 3 4 package test 5 6 import ( 7 "net/http" 8 ) 9 10 // RedirectURL returns the redirect URL of a http response. 11 func RedirectURL(resp http.ResponseWriter) string { 12 return resp.Header().Get("Location") 13 }