server/handlerwrappers/default.rb in cpee-1.3.167 vs server/handlerwrappers/default.rb in cpee-1.3.169

- old
+ new

@@ -39,11 +39,11 @@ params << Riddl::Parameter::Simple.new("#{k}",CPEE::ValueHelper::generate(v)) end end params << Riddl::Header.new("CPEE_BASE",@controller.base_url) params << Riddl::Header.new("CPEE_INSTANCE",@controller.instance_url) - params << Riddl::Header.new("CPEE_CALLBACK",callback) + params << Riddl::Header.new("CPEE_CALLBACK",@controller.instance_url + '/callbacks/' + callback) type = parameters[:method] || 'post' client = Riddl::Client.new(@handler_endpoint) status, result, headers = client.request type => params @@ -153,9 +153,11 @@ elsif result[0].is_a? Riddl::Parameter::Complex if result[0].mimetype == 'application/json' result = JSON::parse(result[0].value.read) elsif result[0].mimetype == 'application/xml' || result[0].mimetype == 'text/xml' result = XML::Smart::string(result[0].value.read) + elsif result[0].mimetype == 'text/plain' + result = result[0].value.read else result = result[0] end end end