Skip to content

Commit

Permalink
Fix for #166
Browse files Browse the repository at this point in the history
  • Loading branch information
jfarcand committed Jan 25, 2012
1 parent 0cc4615 commit 7795f72
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -259,11 +259,19 @@ public ContainerResponse filter(final ContainerRequest request, final ContainerR
String transport = servletReq.getHeader(X_ATMOSPHERE_TRANSPORT);
if (transport == null) {
transport = servletReq.getParameter(X_ATMOSPHERE_TRANSPORT);
// https://github.com/Atmosphere/atmosphere/issues/166
if (transport == null) {
transport = servletReq.getParameter(X_ATMOSPHERE_TRANSPORT.toLowerCase());
}
}

String broadcasterName = servletReq.getHeader(topic);
if (broadcasterName == null) {
broadcasterName = servletReq.getParameter(topic);
// https://github.com/Atmosphere/atmosphere/issues/166
if (broadcasterName == null) {
broadcasterName = servletReq.getParameter(topic.toLowerCase());
}
}

if (transport == null || broadcasterName == null) {
Expand Down

0 comments on commit 7795f72

Please sign in to comment.