Commit 2e820aa3 authored by Andrew Gerrand's avatar Andrew Gerrand

go.net/spdy: use zlib.NewWriterLevelDict

R=golang-dev, dsymonds
CC=golang-dev
https://golang.org/cl/5649077
parent 3294cb5d
......@@ -355,7 +355,7 @@ type Framer struct {
// buffered implementation to optimize performance.
func NewFramer(w io.Writer, r io.Reader) (*Framer, error) {
compressBuf := new(bytes.Buffer)
compressor, err := zlib.NewWriterDict(compressBuf, zlib.BestCompression, []byte(HeaderDictionary))
compressor, err := zlib.NewWriterLevelDict(compressBuf, zlib.BestCompression, []byte(HeaderDictionary))
if err != nil {
return nil, err
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment