File tree Expand file tree Collapse file tree 1 file changed +5
-7
lines changed
Expand file tree Collapse file tree 1 file changed +5
-7
lines changed Original file line number Diff line number Diff line change @@ -35,17 +35,15 @@ String _sseHeaders(String origin) => 'HTTP/1.1 200 OK\r\n'
3535class SseProxyHandler {
3636 final _httpClient = http.Client ();
3737 late final shelf.Handler _incomingMessageProxyHandler =
38- _constructProxyHandler ();
38+ shelf_proxy.proxyHandler (
39+ _serverUri,
40+ client: _httpClient,
41+ proxyName: _proxyName,
42+ );
3943 final String ? _proxyName;
4044 final Uri _proxyUri;
4145 final Uri _serverUri;
4246
43- shelf.Handler _constructProxyHandler () => shelf_proxy.proxyHandler (
44- _serverUri,
45- client: _httpClient,
46- proxyName: _proxyName,
47- );
48-
4947 /// Creates an SSE proxy handler that will handle EventSource requests to
5048 /// [proxyUri] by proxying them to [serverUri] .
5149 SseProxyHandler (Uri proxyUri, Uri serverUri, {String ? proxyName})
You can’t perform that action at this time.
0 commit comments