Skip to content

Commit

Permalink
Only set the status code to 200 when Jersey already set it to 204
Browse files Browse the repository at this point in the history
  • Loading branch information
jfarcand committed Jun 28, 2010
1 parent cfec232 commit 2dfbd45
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -419,7 +419,7 @@ void suspend(boolean sessionSupported,
AtmosphereResource<HttpServletRequest, HttpServletResponse> r) {

// Force the status code to 200 events independently of the value of the entity (null or not)
if (response.getEntity() == null) {
if (response.getStatus() == 204) {
response.setStatus(200);
}

Expand Down

0 comments on commit 2dfbd45

Please sign in to comment.