mirror of
https://github.com/QuantumNous/new-api.git
synced 2026-12-01 19:58:35 +08:00
Driver hooks saw only the Content-Type and Accept headers of the client request. ctx.requestHeaders now carries every client header, with the first value under its canonical name, except the headers that carry gateway credentials: Authorization, Proxy-Authorization, Cookie, X-Api-Key, X-Goog-Api-Key and Mj-Api-Secret. The gateway still forwards none of them upstream; a driver copies only the headers its vendor defines into its request.