ERR_EMPTY_RESPONSE can not process image
http://127.0.0.1:8080/0x0,q50/upload/2019/11/13/WATERMARK.jpg
use ImageProxy to decrease image quality.
This is origin Image.

-----------below is error msg------------------- 2019/11/13 19:32:33 http: panic serving 127.0.0.1:6027: runtime error: slice bounds out of range goroutine 80 [running]: net/http.(*conn).serve.func1(0xc00007a1e0) c:/go/src/net/http/server.go:1769 +0x140 panic(0xd29880, 0x16916f0) c:/go/src/runtime/panic.go:522 +0x1c3 github.com/rwcarlsen/goexif/exif.(*readerToReaderAt).ReadAt(0xc0002b5cb0, 0xc00002a0e8, 0x2, 0x4, 0x8400dc1d, 0xcc1660, 0x1, 0xc00002a0e8) C:/Users/Administrator/go/pkg/mod/github.com/rwcarlsen/[email protected]/exif/readerAt.go:27 +0x308 github.com/rwcarlsen/goexif/exif.(*offsetReaderAt).ReadAt(0xc000322060, 0xc00002a0e8, 0x2, 0x4, 0x8400dbff, 0x0, 0x0, 0x0) C:/Users/Administrator/go/pkg/mod/github.com/rwcarlsen/[email protected]/exif/exif.go:147 +0x66 github.com/rwcarlsen/goexif/tiff.DecodeDir(0xfe9b60, 0xc000322060, 0x10057c0, 0x16c2de0, 0x8400dbff, 0xc00023e020, 0x1, 0x2, 0x0) C:/Users/Administrator/go/pkg/mod/github.com/rwcarlsen/[email protected]/tiff/tiff.go:150 +0xbf github.com/rwcarlsen/goexif/tiff.LazyDecode(0xfe9b60, 0xc000322060, 0xc0002b5cb0, 0x540000001e, 0x0) C:/Users/Administrator/go/pkg/mod/github.com/rwcarlsen/[email protected]/tiff/tiff.go:97 +0x324 github.com/rwcarlsen/goexif/exif.LazyDecode(0xfe9ba0, 0xc0002b5cb0, 0x10, 0x18, 0xc000322040) C:/Users/Administrator/go/pkg/mod/github.com/rwcarlsen/[email protected]/exif/exif.go:289 +0x4f9 github.com/rwcarlsen/goexif/exif.Decode(0xfea4a0, 0xc000322040, 0x20, 0xd6f660, 0xffffffffffffff01) C:/Users/Administrator/go/pkg/mod/github.com/rwcarlsen/[email protected]/exif/exif.go:222 +0x75 willnorris.com/go/imageproxy.exifOrientation(0xfea4a0, 0xc000322040, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, ...) C:/Users/Administrator/Downloads/imageproxy-0.9.0/transform.go:238 +0x5b willnorris.com/go/imageproxy.Transform(0xc00057e000, 0x355af, 0x3fe00, 0x0, 0x0, 0x0, 0x0, 0x0, 0x32, 0x0, ...) C:/Users/Administrator/Downloads/imageproxy-0.9.0/transform.go:66 +0x1fe willnorris.com/go/imageproxy.(*TransformingTransport).RoundTrip(0xc000005e00, 0xc000106000, 0x0, 0x0, 0x0) C:/Users/Administrator/Downloads/imageproxy-0.9.0/imageproxy.go:438 +0x36d github.com/gregjones/httpcache.(*Transport).RoundTrip(0xc0002fced0, 0xc000106000, 0xc0002fced0, 0x0, 0x0) C:/Users/Administrator/go/pkg/mod/github.com/gregjones/[email protected]/httpcache.go:214 +0x799 net/http.send(0xc000106000, 0xfe9ac0, 0xc0002fced0, 0x0, 0x0, 0x0, 0xc000006100, 0x0, 0x1, 0x0) c:/go/src/net/http/client.go:250 +0x468 net/http.(*Client).send(0xc0002fcea0, 0xc000106000, 0x0, 0x0, 0x0, 0xc000006100, 0x0, 0x1, 0x2000) c:/go/src/net/http/client.go:174 +0x102 net/http.(*Client).do(0xc0002fcea0, 0xc000106000, 0x0, 0x0, 0x0) c:/go/src/net/http/client.go:641 +0x280 net/http.(*Client).Do(...) c:/go/src/net/http/client.go:509 willnorris.com/go/imageproxy.(*Proxy).serveImage(0xc000304340, 0xffb820, 0xc0003180e0, 0xc00030e000) C:/Users/Administrator/Downloads/imageproxy-0.9.0/imageproxy.go:168 +0x3b0 net/http.HandlerFunc.ServeHTTP(0xc000062f60, 0xffb820, 0xc0003180e0, 0xc00030e000) c:/go/src/net/http/server.go:1995 +0x4b willnorris.com/go/imageproxy.(*Proxy).ServeHTTP(0xc000304340, 0xffb820, 0xc0003180e0, 0xc00030e000) C:/Users/Administrator/Downloads/imageproxy-0.9.0/imageproxy.go:139 +0x1a5 net/http.serverHandler.ServeHTTP(0xc000304410, 0xffb820, 0xc0003180e0, 0xc00030e000) c:/go/src/net/http/server.go:2774 +0xaf net/http.(*conn).serve(0xc00007a1e0, 0xffec20, 0xc0005c64c0) c:/go/src/net/http/server.go:1878 +0x858 created by net/http.(*Server).Serve c:/go/src/net/http/server.go:2884 +0x2fb