From 77d48adcf5d489f146d81666d9631bf358deb540 Mon Sep 17 00:00:00 2001 From: Matthias H Date: Fri, 21 Feb 2014 21:05:16 +0100 Subject: [PATCH] [webservice] dispatch command in post aswell --- lib/rbot/core/webservice.rb | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lib/rbot/core/webservice.rb b/lib/rbot/core/webservice.rb index 222561de..464f0ab3 100644 --- a/lib/rbot/core/webservice.rb +++ b/lib/rbot/core/webservice.rb @@ -39,7 +39,11 @@ class DispatchServlet < WEBrick::HTTPServlet::AbstractServlet post = CGI::parse(req.body) ip = req.peeraddr[3] - command = uri.gsub('/', ' ').strip + if post['command'] + command = post['command'].first + else + command = uri.gsub('/', ' ').strip + end username = post['username'].first password = post['password'].first -- 2.39.2