{"action":"closed","issue":{"url":"https://api.github.com/repos/bblimke/webmock/issues/339","labels_url":"https://api.github.com/repos/bblimke/webmock/issues/339/labels{/name}","comments_url":"https://api.github.com/repos/bblimke/webmock/issues/339/comments","events_url":"https://api.github.com/repos/bblimke/webmock/issues/339/events","html_url":"https://github.com/bblimke/webmock/issues/339","id":23333205,"number":339,"title":"When POSTing a hash with Typhoeus, the webmock request body is not a hash","user":{"login":"myronmarston","id":49391,"avatar_url":"https://avatars.githubusercontent.com/u/49391?v=3","gravatar_id":"","url":"https://api.github.com/users/myronmarston","html_url":"https://github.com/myronmarston","followers_url":"https://api.github.com/users/myronmarston/followers","following_url":"https://api.github.com/users/myronmarston/following{/other_user}","gists_url":"https://api.github.com/users/myronmarston/gists{/gist_id}","starred_url":"https://api.github.com/users/myronmarston/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/myronmarston/subscriptions","organizations_url":"https://api.github.com/users/myronmarston/orgs","repos_url":"https://api.github.com/users/myronmarston/repos","events_url":"https://api.github.com/users/myronmarston/events{/privacy}","received_events_url":"https://api.github.com/users/myronmarston/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2013-11-26T18:00:06Z","updated_at":"2015-05-10T03:12:17Z","closed_at":"2015-05-10T03:12:17Z","body":"I have a VCR user that's having this problem:\r\n\r\nhttps://github.com/vcr/vcr/issues/261#issuecomment-29312211\r\n\r\nVCR can't deal with non-string request bodies.  It doesn't know how to encode it.  Typhoeus now has a `Typhoeus::Request#encoded_body` method that will give you the body as a raw string.  I think WebMock should use that.\r\n\r\nOn a side note, it might be good for webmock to verify that the request body is a string, and print a warning or raise an error if it's not a string, since WebMock's API specifies that it's request object has body as a string."}}