add fixes by marcell
[epoint] / cmd / epoint-server / epoint-server.go
index ec8b220..ee6bf58 100644 (file)
@@ -140,8 +140,8 @@ func main() {
        _, _ = fmt.Fprintf(f, `<html><head><title>epoint-server submit form</title></head><body>
 <h2>epoint-server submit form</h2>
 <h3>web form</h3>
-<p>submit one document at once
-<form method="post" action="http://localhost%s/submit">
+<p>submit one document at a time
+<form method="post" action="/submit">
 <p>key:<br><textarea name="key" rows="5" cols="80"></textarea>
 <p>draft:<br><textarea name="draft" rows="5" cols="80"></textarea>
 <p>debit:<br><textarea name="debit" rows="5" cols="80"></textarea>
@@ -153,7 +153,7 @@ curl --data-urlencode name@path/to/file.txt host/submit
 </pre>
 where 'name' is 'key', 'draft' or 'debit'.
 </body></html>
-`, addr)
+`)
        _ = f.Close()
 
        // queries