mirror of
https://github.com/ultrasn0w/huso.git
synced 2026-10-26 16:14:17 +01:00
BakaBakaBaka
This commit is contained in:
1 parent
3cde8c7c1c
commit
171fd41c1c
1 file changed
+1
-1
@@ -44,7 +44,7 @@ func Start(ctx *fasthttp.RequestCtx) {
|
|||||||
|
|
||||||
func AuthTest(ctx *fasthttp.RequestCtx) {
|
func AuthTest(ctx *fasthttp.RequestCtx) {
|
||||||
auth := ctx.Request.Header.Peek("X-HUSO-AUTH")
|
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)
|
ctx.SetStatusCode(fasthttp.StatusBadRequest)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user