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:
parent
7e6a08ad1d
commit
2c2b323f3d
2 changed files with 2 additions and 2 deletions
|
@ -13,7 +13,6 @@ import (
|
|||
"net/url"
|
||||
"os"
|
||||
"os/signal"
|
||||
"regexp"
|
||||
"runtime"
|
||||
"strconv"
|
||||
"strings"
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue