2017-12-15 21:11:02 +00:00
|
|
|
// Copyright 2017 The Gitea Authors. All rights reserved.
|
2022-11-27 18:20:29 +00:00
|
|
|
// SPDX-License-Identifier: MIT
|
2017-12-15 21:11:02 +00:00
|
|
|
|
|
|
|
package test
|
|
|
|
|
|
|
|
import (
|
|
|
|
"net/http"
|
|
|
|
)
|
|
|
|
|
|
|
|
// RedirectURL returns the redirect URL of a http response.
|
|
|
|
func RedirectURL(resp http.ResponseWriter) string {
|
|
|
|
return resp.Header().Get("Location")
|
|
|
|
}
|