Jens Mallien
Jens Mallien
Adds flushing after each buffer write in RestClientProxyExchange in case of text/event-stream to fix issue https://github.com/spring-cloud/spring-cloud-gateway/issues/3410
Use getPath instead of getRawPath to prevent doulbe encoding of the URI to fix issue #3482.
**Describe the bug** If the downstream server accepts http2 and for example offers 100 concurrent streams (tomcat default) the http client in gateway mvc is using up to those 100...
**Describe the bug** The rewritePath filter encodes URLs twice because it reads "rawPath" which includes an encoded form of the URI and after that, using `UriComponentsBuilder` which encodes it again....
Adds flushing after each buffer write in RestClientProxyExchange to fix issue #3410