remove those many annoying fmt.Println() calls on every handler.

This commit is contained in:
fiatjaf
2024-06-12 15:42:56 -03:00
parent eec788101f
commit b19f066a9d
8 changed files with 1 additions and 20 deletions

View File

@@ -43,7 +43,6 @@ func renderOEmbed(w http.ResponseWriter, r *http.Request) {
return
}
code := strings.Split(targetURL.Path, "/")[1]
fmt.Println(targetURL.Path, "&^", r.Header.Get("user-agent"))
if !strings.HasPrefix(code, "nevent1") {
http.Error(w, "oembed is only supported for nevent1 codes, not '"+code+"'", 400)