Strange behaviour between 1.37.0 and 1.38.0

Hi
I use pushpin to manage a SSE flow with a FastAPI application behind.

Using the same application and changing only the version of the pushpin service I get different results, even with the same config.

With v1.37.0 I have:

curl -v http://localhost:7999/meteo

* Connected to localhost (127.0.0.1) port 7999 (#0)
> GET /meteo HTTP/1.1
> Host: localhost:7999
> User-Agent: curl/7.81.0
> Accept: */*
> 
* Mark bundle as not supporting multiuse
< HTTP/1.1 200 OK
< date: Tue, 04 Jun 2024 17:23:17 GMT
< server: uvicorn
< content-type: text/event-stream; charset=utf-8
< cache-control: no-cache
< Access-Control-Allow-Methods: OPTIONS, HEAD, GET, POST, PUT, DELETE
< Access-Control-Expose-Headers: date, server
< Access-Control-Allow-Credentials: true
< Access-Control-Allow-Origin: *
< Access-Control-Max-Age: 3600
< Connection: Transfer-Encoding
< Transfer-Encoding: chunked
< 
event: message
data: {"entity_id": "meteo:dev_meteo", "entity_type": "meteo"}

After updating to v1.38.0 ( and after ) I get:

curl -v http://localhost:7999/meteo

> GET /meteo HTTP/1.1
> Host: localhost:7999
> User-Agent: curl/7.81.0
> Accept: */*
> 
* Mark bundle as not supporting multiuse
< HTTP/1.1 200 OK
< date: Wed, 05 Jun 2024 09:01:45 GMT
< server: uvicorn
< content-type: text/event-stream; charset=utf-8
< cache-control: no-cache
< Access-Control-Allow-Methods: OPTIONS, HEAD, GET, POST, PUT, DELETE
< Access-Control-Expose-Headers: date, server
< Access-Control-Allow-Credentials: true
< Access-Control-Allow-Origin: *
< Access-Control-Max-Age: 3600
< Connection: Transfer-Encoding
< Transfer-Encoding: chunked
< 
1^M
i^M
1^M
n^M
1^M
d^M
1^M
_^M
1^M
i^M
1^M
c^M
1^M
o^M
1^M
n^M
1^M
_^M
1^M
r^M
1^M
o^M
1^M
t^M
1^M
a^M
1^M
[...] and so on

I assume from v1.38.0 there is some new feature I can’t get into, but this mangle the results making them unusable.
Any suggestion about how to fix it ?
Thank you !

Hi, recent versions don’t properly handle chunked encoded responses from the backend. This will be fixed in the next version.