[fix] remove http compression by default

pull/2/head
Adam Tauber 7 years ago
parent 623c0e1531
commit 6b37e98403

@ -17,6 +17,7 @@ import (
) )
var CLIENT *http.Client = &http.Client{} var CLIENT *http.Client = &http.Client{}
var TRANSPORT *http.Transport = &http.Transport{}
var VIEWS []string = []string{ var VIEWS []string = []string{
"url", "url",
@ -45,6 +46,11 @@ type SearchEditor struct {
g *gocui.Gui g *gocui.Gui
} }
func init() {
TRANSPORT.DisableCompression = true
CLIENT.Transport = TRANSPORT
}
func (e *SearchEditor) Edit(v *gocui.View, key gocui.Key, ch rune, mod gocui.Modifier) { func (e *SearchEditor) Edit(v *gocui.View, key gocui.Key, ch rune, mod gocui.Modifier) {
gocui.DefaultEditor.Edit(v, key, ch, mod) gocui.DefaultEditor.Edit(v, key, ch, mod)
e.g.Execute(func(g *gocui.Gui) error { e.g.Execute(func(g *gocui.Gui) error {

Loading…
Cancel
Save