Skip to content

Commit

Permalink
Fix for ping messages being malformed
Browse files Browse the repository at this point in the history
  • Loading branch information
biilmann committed Sep 18, 2011
1 parent 7e76dc2 commit f2936e7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ RELEASE_DIR = dist/app

all:
mkdir -p $(RELEASE_DIR)
cabal build
cabal install -flibev
cp dist/build/eventsource-broker/eventsource-broker $(RELEASE_DIR)/eventsource-broker
cp -r static $(RELEASE_DIR)
cp -r templates $(RELEASE_DIR)
Expand Down
2 changes: 1 addition & 1 deletion src/EventStream.hs
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ eventSourceEnum source builder timeoutAction finalizer = go
Just (Just b) -> k (Chunks [b]) >>== go
Just Nothing -> k EOF
Nothing -> do
k (Chunks [flushAfter $ field commentField "ping"]) >>== go
k (Chunks [flushAfter $ field commentField (fromString "ping")]) >>== go
go step = do
liftIO finalizer
returnI step
Expand Down

0 comments on commit f2936e7

Please sign in to comment.