You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Affects: 5.3.10.RELEASE and current main (30efa4d)
I'm making a SSE request to another server using WebClient w/ WebFlux, and the response from the WebClient always shows the results with leading whitespaces removed as well as trailing ones.
I think it is due to ServerSentEventHttpMessageReader::buildEvent trimming every line:
Is there any reason that leading whitespaces must be removed from the SSE response data?
I wanted to use tabs at the start of each line to indent the text.
I've tried other clients like curl but they show responses with the leading whitespaces preserved.
Thanks in advance.
The text was updated successfully, but these errors were encountered:
Affects: 5.3.10.RELEASE and current main (30efa4d)
I'm making a SSE request to another server using WebClient w/ WebFlux, and the response from the WebClient always shows the results with leading whitespaces removed as well as trailing ones.
I think it is due to
ServerSentEventHttpMessageReader::buildEvent
trimming every line:Is there any reason that leading whitespaces must be removed from the SSE response data?
I wanted to use tabs at the start of each line to indent the text.
I've tried other clients like
curl
but they show responses with the leading whitespaces preserved.Thanks in advance.
The text was updated successfully, but these errors were encountered: