[#3461] removed content-type charset and deprecated keep-alive header field
This commit is contained in:
parent
5a5125383a
commit
80d774a8ef
|
@ -18,6 +18,9 @@
|
||||||
- Speed up the listing loading times for records with large `editor` field values by initially fetching only a partial of the records data (the complete record data is loaded on record preview/update).
|
- Speed up the listing loading times for records with large `editor` field values by initially fetching only a partial of the records data (the complete record data is loaded on record preview/update).
|
||||||
- Added "Media library" (collection images picker) support for the TinyMCE `editor` field.
|
- Added "Media library" (collection images picker) support for the TinyMCE `editor` field.
|
||||||
|
|
||||||
|
- Removed the explicit charset from the realtime response due to compatability issues with IIS ([#3461](https://github.com/pocketbase/pocketbase/issues/3461)).
|
||||||
|
_The `Connection:keep-alive` realtime response header was also removed as it is not really used with HTTP2 anyway._
|
||||||
|
|
||||||
|
|
||||||
## v0.18.9
|
## v0.18.9
|
||||||
|
|
||||||
|
|
|
@ -56,9 +56,8 @@ func (api *realtimeApi) connect(c echo.Context) error {
|
||||||
api.app.SubscriptionsBroker().Unregister(client.Id())
|
api.app.SubscriptionsBroker().Unregister(client.Id())
|
||||||
}()
|
}()
|
||||||
|
|
||||||
c.Response().Header().Set("Content-Type", "text/event-stream; charset=UTF-8")
|
c.Response().Header().Set("Content-Type", "text/event-stream")
|
||||||
c.Response().Header().Set("Cache-Control", "no-store")
|
c.Response().Header().Set("Cache-Control", "no-store")
|
||||||
c.Response().Header().Set("Connection", "keep-alive")
|
|
||||||
// https://github.com/pocketbase/pocketbase/discussions/480#discussioncomment-3657640
|
// https://github.com/pocketbase/pocketbase/discussions/480#discussioncomment-3657640
|
||||||
// https://nginx.org/en/docs/http/ngx_http_proxy_module.html#proxy_buffering
|
// https://nginx.org/en/docs/http/ngx_http_proxy_module.html#proxy_buffering
|
||||||
c.Response().Header().Set("X-Accel-Buffering", "no")
|
c.Response().Header().Set("X-Accel-Buffering", "no")
|
||||||
|
|
Loading…
Reference in New Issue