1
0
Fork 0
mirror of https://github.com/FrankerFaceZ/FrankerFaceZ.git synced 2025-08-31 02:10:55 +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"
"os"
"os/signal"
"regexp"
"runtime"
"strconv"
"strings"

View file

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