Use Last-Event-ID instead of last-event-id#449
Use Last-Event-ID instead of last-event-id#449tzolov merged 1 commit intomodelcontextprotocol:mainfrom
Last-Event-ID instead of last-event-id#449Conversation
see https://html.spec.whatwg.org/multipage/server-sent-events.html#the-last-event-id-header Signed-off-by: Yanming Zhou <zhouyanming@gmail.com>
|
https://www.rfc-editor.org/rfc/rfc9110.html#section-5.1
If this is causing any issues when the server provides lowercase or the client is unable to work with various cases then please open an issue with a reproducer so we can investigate and address it properly. |
|
@chemicL , a good point but better to play "safe". Most SDK implementations likely aren't case insensitive - Seems like the Java SDK is not either.
|
I'm not saying it will cause any issue, I think it's better to align with SSE spec and |
|
back-ported to 0.11.x |
I consider this to be opposite to "safe". Not treating headers as case-insensitive is a very risky business and should be fixed in the particular implementation on a case-by-case basis. Your understanding of "safe" seems to be rather that we wash our hands in case someone else's implementation is broken and would break for someone using it, e.g. behind an Envoy proxy which lowercases all headers. These things are difficult to investigate in a distributed environment. |
|
To add to that - I share the views from the E.g.
|
see https://html.spec.whatwg.org/multipage/server-sent-events.html#the-last-event-id-header