mirror of
https://github.com/ultrasn0w/huso.git
synced 2025-12-15 21:09:52 +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) {
|
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