diff options
author | Evgeny Kuznetsov <evgeny@kuznetsov.md> | 2023-03-23 20:27:14 +0300 |
---|---|---|
committer | Evgeny Kuznetsov <evgeny@kuznetsov.md> | 2023-03-23 20:27:14 +0300 |
commit | c4d28076c95e6a6bdd55e81ec36ce7cbca7e6c74 (patch) | |
tree | cbeed3f1d0da24311347655f5c4d1fc6ee88aa77 /main.go | |
parent | 93acbe74a992c4cb83676301e084575bd4fe76e5 (diff) | |
download | static-wm-master.tar.gz static-wm-master.zip |
Diffstat (limited to 'main.go')
-rw-r--r-- | main.go | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 } |