From 171fd41c1ce833ea4b77ea10b2c5f3c1d0767ea4 Mon Sep 17 00:00:00 2001 From: daru Date: Mon, 18 Apr 2022 22:03:03 +0200 Subject: [PATCH] BakaBakaBaka --- ober.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ober.go b/ober.go index 98d8714..31222ac 100644 --- a/ober.go +++ b/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 }