diff --git a/lib/vimeo_me2/http/http_request.rb b/lib/vimeo_me2/http/http_request.rb index 44aa3ba..ba3765b 100644 --- a/lib/vimeo_me2/http/http_request.rb +++ b/lib/vimeo_me2/http/http_request.rb @@ -76,9 +76,11 @@ def set_auth_header token end def http_request - body = json_header? ? @body.to_json : @body + return {headers:@headers, body:formatted_body, query:@query} + end - return {headers:@headers, body:body, query:@query} + def formatted_body + json_header? ? @body.to_json : @body end def json_header?