Compare commits

...

1 Commits

Author SHA1 Message Date
CaIon
a70ca53449 fix: mj 2024-03-22 21:39:44 +08:00

View File

@@ -188,7 +188,6 @@ func DoMidjourneyHttpRequest(c *gin.Context, timeout time.Duration, fullRequestU
auth := c.Request.Header.Get("Authorization")
if auth != "" {
auth = strings.TrimPrefix(auth, "Bearer ")
auth = strings.Split(auth, "-")[0]
req.Header.Set("mj-api-secret", auth)
}
defer cancel()