drop support for Go 1.6

This commit is contained in:
Marten Seemann
2017-04-11 15:35:58 +07:00
parent 2a9f214381
commit d73e99624d
5 changed files with 1 additions and 24 deletions

View File

@@ -10,7 +10,6 @@ services:
- docker
go:
- 1.6.4
- 1.7.5
- 1.8

View File

@@ -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.

View File

@@ -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
}
}

View File

@@ -1,9 +0,0 @@
// +build go1.7
package h2quic
import "net/http"
func setUncompressed(res *http.Response) {
res.Uncompressed = true
}

View File

@@ -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
}