Answers for "golang http stop redirection"

Go
0

golang http stop redirection

client := &http.Client{
    CheckRedirect: func(req *http.Request, via []*http.Request) error {
        return http.ErrUseLastResponse
    },
}
Posted by: Guest on January-25-2021

Browse Popular Code Answers by Language