unexpected eof on windows

This commit is contained in:
Antoni Sawicki 2019-05-30 02:15:52 -07:00
parent 12664e6a10
commit d382c38547
2 changed files with 2 additions and 0 deletions

View File

@ -16,6 +16,7 @@ A HTTP proxy server that allows to use historical and obsolete web browsers on t
## Todo ## Todo
* configurable size and scale * configurable size and scale
* ISMAP * ISMAP
* unexpected EOF on Windows
* configurable color palete and quantization * configurable color palete and quantization
* paginated scrolling * paginated scrolling
* real http proxy support * real http proxy support

1
wrp.go
View File

@ -96,6 +96,7 @@ func capture(gourl string, out http.ResponseWriter) {
log.Printf("Landed on: %s, Got %d nodes\n", loc, len(nodes)) log.Printf("Landed on: %s, Got %d nodes\n", loc, len(nodes))
// Process Screenshot Image // Process Screenshot Image
bytes.NewReader(pngbuf).Seek(0, 0)
img, err := png.Decode(bytes.NewReader(pngbuf)) img, err := png.Decode(bytes.NewReader(pngbuf))
if err != nil { if err != nil {
log.Printf("Failed to decode screenshot: %s\n", err) log.Printf("Failed to decode screenshot: %s\n", err)