Skip to content

Commit

Permalink
Fix for #286 Handling of "glued" messages. Brokes the functionality w…
Browse files Browse the repository at this point in the history
…hen I refactored
  • Loading branch information
jfarcand committed Jun 19, 2012
1 parent d657cd8 commit 36bf368
Showing 1 changed file with 3 additions and 3 deletions.
Expand Up @@ -71,7 +71,7 @@ public AsyncIOWriter writeError(int errorCode, String message) throws IOExceptio

@Override
public AsyncIOWriter write(String data) throws IOException {
response.write(data + "<||>");
response.write(data + END);
return this;
}

Expand Down Expand Up @@ -103,7 +103,7 @@ public AsyncIOWriter flush() throws IOException {

@Override
public String filter(AtmosphereResponse r, String message) {
return message + "<||>";
return message + END;
}

@Override
Expand Down Expand Up @@ -136,6 +136,6 @@ public void postInspect(AtmosphereResource r) {

@Override
public String toString() {
return "<||> End Message Interceptor";
return END + " End Message Interceptor";
}
}

1 comment on commit 36bf368

@SuperPommeDeTerre
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It must be "end" and not "END", I think...

Please sign in to comment.