Commit 301f8ac
committed
fix: restore legacy X-Ray-Serve-Request-Id header for sticky routing
The ModelScope gateway (www.modelscope.cn/twinkle) requires the
`X-Ray-Serve-Request-Id` header name for sticky session routing.
Commit dff3143 replaced it with `x-request-id`, which Ray Serve 2.55+
reads natively but the gateway does not forward correctly.
Add `H_REQUEST_ID_LEGACY` alongside `H_REQUEST_ID` so both header names
are emitted, fixing `BadRequestError: Missing X-Ray-Serve-Request-Id
header` when connecting through the ModelScope gateway.1 parent cd4458b commit 301f8ac
1 file changed
Lines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| 16 | + | |
16 | 17 | | |
17 | 18 | | |
18 | 19 | | |
| |||
22 | 23 | | |
23 | 24 | | |
24 | 25 | | |
25 | | - | |
| 26 | + | |
26 | 27 | | |
27 | 28 | | |
28 | 29 | | |
| |||
0 commit comments