mirror of
https://github.com/linux-do/new-api.git
synced 2025-11-12 17:13:43 +08:00
fix: mj
This commit is contained in:
@@ -188,7 +188,6 @@ func DoMidjourneyHttpRequest(c *gin.Context, timeout time.Duration, fullRequestU
|
|||||||
auth := c.Request.Header.Get("Authorization")
|
auth := c.Request.Header.Get("Authorization")
|
||||||
if auth != "" {
|
if auth != "" {
|
||||||
auth = strings.TrimPrefix(auth, "Bearer ")
|
auth = strings.TrimPrefix(auth, "Bearer ")
|
||||||
auth = strings.Split(auth, "-")[0]
|
|
||||||
req.Header.Set("mj-api-secret", auth)
|
req.Header.Set("mj-api-secret", auth)
|
||||||
}
|
}
|
||||||
defer cancel()
|
defer cancel()
|
||||||
|
|||||||
Reference in New Issue
Block a user