diff options
author | Erik Dubbelboer <erik@dubbelboer.com> | 2020-11-03 20:43:27 +0100 |
---|---|---|
committer | Erik Dubbelboer <erik@dubbelboer.com> | 2020-11-03 20:43:44 +0100 |
commit | 00973e5c0a649a263ed29e59806998a8e5c781f1 (patch) | |
tree | bcc189a95c96f7aa8aaf057e90516bac1c4d02a5 /fasthttpproxy | |
parent | fixed default schema for for req url (#897) (diff) | |
download | fasthttp-00973e5c0a649a263ed29e59806998a8e5c781f1.tar.gz fasthttp-00973e5c0a649a263ed29e59806998a8e5c781f1.tar.bz2 fasthttp-00973e5c0a649a263ed29e59806998a8e5c781f1.zip |
Don't use %w
We support versions of Go that don't have this yet.
Diffstat (limited to 'fasthttpproxy')
-rw-r--r-- | fasthttpproxy/proxy_env.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fasthttpproxy/proxy_env.go b/fasthttpproxy/proxy_env.go index 34089ca..22cc76e 100644 --- a/fasthttpproxy/proxy_env.go +++ b/fasthttpproxy/proxy_env.go @@ -50,7 +50,7 @@ func FasthttpProxyHTTPDialerTimeout(timeout time.Duration) fasthttp.DialFunc { port, _, err := net.SplitHostPort(addr) if err != nil { - return nil, fmt.Errorf("unexpected addr format: %w", err) + return nil, fmt.Errorf("unexpected addr format: %v", err) } reqURL := &url.URL{Host: addr, Scheme: httpScheme} @@ -109,7 +109,7 @@ func FasthttpProxyHTTPDialerTimeout(timeout time.Duration) fasthttp.DialFunc { if err := res.Read(bufio.NewReader(conn)); err != nil { if connErr := conn.Close(); connErr != nil { - return nil, fmt.Errorf("conn close err %v followed by read conn err %w", connErr, err) + return nil, fmt.Errorf("conn close err %v followed by read conn err %v", connErr, err) } return nil, err } |