lib/fluent/plugin/in_http_client.rb in fluent-plugin-http-client-0.2.0 vs lib/fluent/plugin/in_http_client.rb in fluent-plugin-http-client-0.2.1
- old
+ new
@@ -105,20 +105,20 @@
def do_request
response = @client.send(@http_method)
{
- status: response.status,
- success: response.success?,
- response: response.body
+ 'status' => response.status,
+ 'success' => response.success?,
+ 'response' => response.body
}
end
def parse_exception(exception)
{
- status: -1,
- success: false,
- error: exception.to_s
+ 'status' => -1,
+ 'success' => false,
+ 'error' => exception.to_s
}
end
end
end
end