mirror of
https://github.com/tenox7/wrp.git
synced 2024-11-26 05:49:28 +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
|
## 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
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))
|
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)
|
||||||
|
Loading…
Reference in New Issue
Block a user