1
0
Fork 0
mirror of https://github.com/FrankerFaceZ/FrankerFaceZ.git synced 2025-09-04 12:20:56 +00:00

Fix socket server compilation errors.

This commit is contained in:
SirStendec 2018-07-21 16:28:46 -04:00
parent 7e6a08ad1d
commit 2c2b323f3d
2 changed files with 2 additions and 2 deletions

View file

@ -13,7 +13,6 @@ import (
"net/url" "net/url"
"os" "os"
"os/signal" "os/signal"
"regexp"
"runtime" "runtime"
"strconv" "strconv"
"strings" "strings"

View file

@ -4,6 +4,7 @@ import (
"encoding/json" "encoding/json"
"fmt" "fmt"
"net/http" "net/http"
"net/url"
"strconv" "strconv"
"strings" "strings"
"sync" "sync"
@ -254,7 +255,7 @@ func HTTPBackendUncachedPublish(w http.ResponseWriter, r *http.Request) {
fmt.Fprint(w, "Error: channel must be specified") fmt.Fprint(w, "Error: channel must be specified")
return return
} }
rl, err := rateLimitFromRequest(r) rl, err := rateLimitFromFormData(formData)
if err != nil { if err != nil {
w.WriteHeader(422) w.WriteHeader(422)
fmt.Fprintf(w, "error parsing ratelimit: %v", err) fmt.Fprintf(w, "error parsing ratelimit: %v", err)