diff --git a/wrp.go b/wrp.go index 4e7d5a7..aaf31c3 100644 --- a/wrp.go +++ b/wrp.go @@ -58,7 +58,7 @@ func pageServer(out http.ResponseWriter, r *http.Request) { fmt.Fprintf(out, "

\n") fmt.Fprintf(out, "Width: \n", w) fmt.Fprintf(out, "Height: \n", h) - fmt.Fprintf(out, "Scale: \n", s) + fmt.Fprintf(out, "Scale: \n", s) fmt.Fprintf(out, "

") if len(u) > 4 { capture(u, w, h, s, out) @@ -139,7 +139,7 @@ func capture(gourl string, w int64, h int64, s float64, out http.ResponseWriter) if err != nil { continue } - target := fmt.Sprintf("/?url=%s", tgt) + target := fmt.Sprintf("/?url=%s&w=%d&h=%d&s=%1.2f", tgt, w, h, s) if len(b.Content) > 6 && len(target) > 7 { fmt.Fprintf(out, "\"%s\"\n",