Skip to content

Commit

Permalink
Update httpgzip package import path.
Browse files Browse the repository at this point in the history
The github.com/shurcooL/go/gzip_file_server package has been overhauled
to have better style, and moved to import path github.com/shurcooL/httpgzip.
  • Loading branch information
dmitshur committed Jul 21, 2016
1 parent fc2590b commit 6282168
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,6 @@ import (
"github.com/shurcooL/go-goon/bypass"
"github.com/shurcooL/go/analysis"
"github.com/shurcooL/go/gddo"
"github.com/shurcooL/go/gzip_file_server"
"github.com/shurcooL/go/httpstoppable"
"github.com/shurcooL/go/open"
"github.com/shurcooL/go/pipeutil"
Expand All @@ -68,6 +67,7 @@ import (
"github.com/shurcooL/go/reflectsource"
"github.com/shurcooL/go/trim"
"github.com/shurcooL/httpfs/union"
"github.com/shurcooL/httpgzip"
"github.com/shurcooL/markdownfmt/markdown"
"github.com/shurcooL/octicons"
"golang.org/x/net/websocket"
Expand Down Expand Up @@ -6450,7 +6450,7 @@ func initHttpHandlers() {
assets := union.New(map[string]http.FileSystem{
"/octicons": octicons.Assets,
})
fileServer := gzip_file_server.New(assets)
fileServer := httpgzip.FileServer(assets, httpgzip.FileServerOptions{ServeError: httpgzip.Detailed})
http.Handle("/assets/", http.StripPrefix("/assets", fileServer))
}
http.HandleFunc("/close", func(w http.ResponseWriter, req *http.Request) {
Expand Down

0 comments on commit 6282168

Please sign in to comment.