Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use klauspost/compress/gzip instead of standard library #107

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,7 @@ module github.com/NYTimes/gziphandler

go 1.11

require github.com/stretchr/testify v1.3.0
require (
github.com/klauspost/compress v1.10.11
github.com/stretchr/testify v1.3.0
)
2 changes: 2 additions & 0 deletions go.sum
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8=
github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
github.com/klauspost/compress v1.10.11 h1:K9z59aO18Aywg2b/WSgBaUX99mHy2BES18Cr5lBKZHk=
github.com/klauspost/compress v1.10.11/go.mod h1:aoV0uJVorq1K+umq18yTdKaF57EivdYsUV+/s2qKfXs=
github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM=
github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME=
Expand Down
3 changes: 2 additions & 1 deletion gzip.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ package gziphandler // import "github.com/NYTimes/gziphandler"

import (
"bufio"
"compress/gzip"
"fmt"
"io"
"mime"
Expand All @@ -11,6 +10,8 @@ import (
"strconv"
"strings"
"sync"

"github.com/klauspost/compress/gzip"
)

const (
Expand Down
2 changes: 1 addition & 1 deletion gzip_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ package gziphandler

import (
"bytes"
"compress/gzip"
"fmt"
"io"
"io/ioutil"
Expand All @@ -13,6 +12,7 @@ import (
"strconv"
"testing"

"github.com/klauspost/compress/gzip"
"github.com/stretchr/testify/assert"
)

Expand Down