mirror of
https://github.com/rclone/rclone.git
synced 2024-11-26 02:09:55 +08:00
16 lines
309 B
Go
16 lines
309 B
Go
|
//+build go1.8
|
||
|
|
||
|
package rest
|
||
|
|
||
|
import (
|
||
|
"net/http"
|
||
|
)
|
||
|
|
||
|
// ClientWithHeaderReset makes a new http client which resets the
|
||
|
// headers passed in on redirect
|
||
|
//
|
||
|
// This is now unecessary with go1.8 so becomes a no-op
|
||
|
func ClientWithHeaderReset(c *http.Client, headers map[string]string) *http.Client {
|
||
|
return c
|
||
|
}
|