Skip to content

Commit

Permalink
Remove duplicate headers
Browse files Browse the repository at this point in the history
  • Loading branch information
kodeFant committed Sep 1, 2023
1 parent e592b25 commit ee1ab07
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions IHP/DBEvent.hs
Original file line number Diff line number Diff line change
Expand Up @@ -36,12 +36,6 @@ respondDbEvent eventName = do
touchedTables <- Set.toList <$> readIORef ?touchedTables
putStrLn $ "Registering notification trigger for tables: " <> show touchedTables

let headers =
[ ("Cache-Control", "no-store")
, ("Connection", "keep-alive")
, (hContentType, "text/event-stream")
]

let streamBody sendChunk flush = do
sendChunk (ByteString.stringUtf8 "data: Connection established!\n\n") >> flush

Expand Down

0 comments on commit ee1ab07

Please sign in to comment.