summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--main.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/main.go b/main.go
index e2f64c4..7419075 100644
--- a/main.go
+++ b/main.go
@@ -23,7 +23,7 @@ func (ep endpoint) ServeHTTP(w http.ResponseWriter, r *http.Request) {
source, err := url.Parse(r.PostFormValue("source"))
if err != nil || source.Host == "" {
w.WriteHeader(http.StatusBadRequest)
- w.Write([]byte(errSrcInvalid))
+ _, _ = w.Write([]byte(errSrcInvalid))
return
}