mirror of
https://github.com/tenox7/wrp.git
synced 2024-12-22 06:29:16 +00:00
unexpected eof on windows
This commit is contained in:
parent
12664e6a10
commit
d382c38547
@ -16,6 +16,7 @@ A HTTP proxy server that allows to use historical and obsolete web browsers on t
|
||||
## Todo
|
||||
* configurable size and scale
|
||||
* ISMAP
|
||||
* unexpected EOF on Windows
|
||||
* configurable color palete and quantization
|
||||
* paginated scrolling
|
||||
* real http proxy support
|
||||
|
1
wrp.go
1
wrp.go
@ -96,6 +96,7 @@ func capture(gourl string, out http.ResponseWriter) {
|
||||
log.Printf("Landed on: %s, Got %d nodes\n", loc, len(nodes))
|
||||
|
||||
// Process Screenshot Image
|
||||
bytes.NewReader(pngbuf).Seek(0, 0)
|
||||
img, err := png.Decode(bytes.NewReader(pngbuf))
|
||||
if err != nil {
|
||||
log.Printf("Failed to decode screenshot: %s\n", err)
|
||||
|
Loading…
Reference in New Issue
Block a user