play-co / hookbox

HookBox is a Comet server and message queue that tightly integrates with your existing web application via web hooks and a REST interface.
http://hookbox.org
MIT License
284 stars 23 forks source link

maybe_auto_subscribe was not passing a conn object into get_channel #89

Open mviamari opened 13 years ago

mviamari commented 13 years ago

maybe_auto_subscribe in server.py was not passing in a conn object to the get_channel calls.

In most cases this isn't an issue, except when the autosubscribe channel in question requires a cookie for authorization. Without the conn object, creating the cookie for a potential create_channel rest call was not happening.

the get_channel calls in maybe_auto_subscribe now use the conn argument, if available, otherwise reverting to the current standard of using the user argument.