diff --git a/wrp.go b/wrp.go index 3e6b351..826e6fb 100644 --- a/wrp.go +++ b/wrp.go @@ -85,7 +85,8 @@ func pageServer(out http.ResponseWriter, req *http.Request) { } log.Printf("%s Page Reqest for url=\"%s\" [%s]\n", req.RemoteAddr, u, req.URL.Path) out.Header().Set("Content-Type", "text/html") - fmt.Fprintf(out, "\nWRP %s\n", u) + fmt.Fprintf(out, "\n", version) + fmt.Fprintf(out, "\nWRP %s\n\n", u) fmt.Fprintf(out, "
URL/Search: ", u) fmt.Fprintf(out, "

\n") fmt.Fprintf(out, "ISMAP: \n", istr) @@ -105,7 +106,7 @@ func pageServer(out http.ResponseWriter, req *http.Request) { } else { fmt.Fprintf(out, "No URL or search query specified") } - fmt.Fprintf(out, "\n

Web Rendering Proxy v%s\n\n", w, h, s, ion, version) + fmt.Fprintf(out, "\n

Web Rendering Proxy Version %s\n\n", w, h, s, ion, version) } func imgServer(out http.ResponseWriter, req *http.Request) { @@ -258,6 +259,7 @@ func main() { http.HandleFunc("/map/", mapServer) http.HandleFunc("/favicon.ico", http.NotFound) http.HandleFunc("/halt", haltServer) + log.Printf("Web Rendering Proxy Version %s\n", version) log.Printf("Starting WRP http server on %s\n", addr) http.ListenAndServe(addr, nil) }