forked from quic-go/quic-go
drop support for Go 1.6
This commit is contained in:
@@ -10,7 +10,6 @@ services:
|
||||
- docker
|
||||
|
||||
go:
|
||||
- 1.6.4
|
||||
- 1.7.5
|
||||
- 1.8
|
||||
|
||||
|
||||
@@ -68,7 +68,3 @@ http.Client{
|
||||
Transport: &h2quic.QuicRoundTripper{},
|
||||
}
|
||||
```
|
||||
|
||||
## Building on Windows
|
||||
|
||||
Due to the low Windows timer resolution (see [StackOverflow question](http://stackoverflow.com/questions/37706834/high-resolution-timers-millisecond-precision-in-go-on-windows)) available with Go 1.6.x, some optimizations might not work when compiled with this version of the compiler. Please use Go 1.7 on Windows.
|
||||
|
||||
@@ -239,7 +239,7 @@ func (c *Client) Do(req *http.Request) (*http.Response, error) {
|
||||
res.Header.Del("Content-Length")
|
||||
res.ContentLength = -1
|
||||
res.Body = &gzipReader{body: res.Body}
|
||||
setUncompressed(res)
|
||||
res.Uncompressed = true
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -1,9 +0,0 @@
|
||||
// +build go1.7
|
||||
|
||||
package h2quic
|
||||
|
||||
import "net/http"
|
||||
|
||||
func setUncompressed(res *http.Response) {
|
||||
res.Uncompressed = true
|
||||
}
|
||||
@@ -1,9 +0,0 @@
|
||||
// +build !go1.7
|
||||
|
||||
package h2quic
|
||||
|
||||
import "net/http"
|
||||
|
||||
func setUncompressed(res *http.Response) {
|
||||
// http.Response.Uncompressed was introduced in go 1.7
|
||||
}
|
||||
Reference in New Issue
Block a user