mirror of
https://github.com/ultrasn0w/huso.git
synced 2025-12-13 13:59:53 +01:00
BakaBakaBaka
This commit is contained in:
2
ober.go
2
ober.go
@@ -44,7 +44,7 @@ func Start(ctx *fasthttp.RequestCtx) {
|
||||
|
||||
func AuthTest(ctx *fasthttp.RequestCtx) {
|
||||
auth := ctx.Request.Header.Peek("X-HUSO-AUTH")
|
||||
if ctx.UserValue("user") == nil || auth == nil || string(auth) == "" || string(ctx.Request.Header.ContentType()) != "application/json" {
|
||||
if ctx.UserValue("user") == nil || auth == nil || string(auth) == "" {
|
||||
ctx.SetStatusCode(fasthttp.StatusBadRequest)
|
||||
return
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user