Hi everyone,
In the context of creating a Hub for PubSubHubbub using Rails, it
seems that our app must be able to handle POST queries with multiple
occurences of params with the same name. (Please see this disucssion :
http://groups.google.com/group/pubsubhubbub/browse_thread/thread/bc971f0a4a99c446)
Right now, when I perform a call to my Rails app (which uses Rack)
with 2 params hub.mode having different values:
hub.mode=subscribe&hub.topic=http&hub.callback=http2&hub.verify=sync&hub.verify=async
Then, it seems that my app only sees that "last value", and params
["hub.verify"] = async.
I am not sure this is Rack's responsibility, but whil debugging I was
able to see that Rack had access to the right data in env
["rack.input"] and was able to "hack" that by forcing params
["hub.verify"] to be an arary containing both values.
Do you think that the HTTP params parser could be "fixed" to work with
that?
Thanks,