changed url from /sse to /
parent
be4c45f498
commit
d8ee159296
2
main.go
2
main.go
|
@ -48,7 +48,7 @@ func main() {
|
||||||
AllowCredentials: true,
|
AllowCredentials: true,
|
||||||
}))
|
}))
|
||||||
|
|
||||||
app.Get("/sse", func(c *fiber.Ctx) error {
|
app.Get("/", func(c *fiber.Ctx) error {
|
||||||
c.Set("Content-Type", "text/event-stream")
|
c.Set("Content-Type", "text/event-stream")
|
||||||
c.Set("Cache-Control", "no-cache")
|
c.Set("Cache-Control", "no-cache")
|
||||||
c.Set("Connection", "keep-alive")
|
c.Set("Connection", "keep-alive")
|
||||||
|
|
Loading…
Reference in New Issue