lib/grenache/http.rb in grenache-ruby-http-0.1.7 vs lib/grenache/http.rb in grenache-ruby-http-0.1.8
- old
+ new
@@ -21,10 +21,10 @@
end
def request(key, payload)
services = lookup(key)
if services.size > 0
- json = Message.req(payload).to_json
+ json = Message.req(key,payload).to_json
service = services.sample.sub("tcp://","http://")
service.prepend("http://") unless service.start_with?("http://")
resp = HTTParty.post(service,{body: json})
return [false, Message.parse(resp.body)]
else