mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-11-14 06:27:30 -06:00
streaming working
This commit is contained in:
parent
e87dec807e
commit
a3d3cd8d43
13 changed files with 170 additions and 93 deletions
|
|
@ -128,9 +128,9 @@ func New(config *config.Config, logger *logrus.Logger) (Router, error) {
|
|||
AllowAllOrigins: true,
|
||||
AllowBrowserExtensions: true,
|
||||
AllowMethods: []string{"POST", "PUT", "DELETE", "GET", "PATCH", "OPTIONS"},
|
||||
AllowHeaders: []string{"Origin", "Content-Length", "Content-Type", "Authorization"},
|
||||
AllowHeaders: []string{"Origin", "Content-Length", "Content-Type", "Authorization", "Upgrade", "Sec-WebSocket-Extensions", "Sec-WebSocket-Key", "Sec-WebSocket-Protocol", "Sec-WebSocket-Version", "Connection"},
|
||||
AllowWebSockets: true,
|
||||
ExposeHeaders: []string{"Link", "X-RateLimit-Reset", "X-RateLimit-Limit", " X-RateLimit-Remaining", "X-Request-Id"},
|
||||
ExposeHeaders: []string{"Link", "X-RateLimit-Reset", "X-RateLimit-Limit", " X-RateLimit-Remaining", "X-Request-Id", "Connection", "Sec-WebSocket-Accept", "Upgrade"},
|
||||
MaxAge: 2 * time.Minute,
|
||||
}))
|
||||
engine.MaxMultipartMemory = 8 << 20 // 8 MiB
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue