{"action":"created","issue":{"url":"https://api.github.com/repos/restsharp/RestSharp/issues/721","labels_url":"https://api.github.com/repos/restsharp/RestSharp/issues/721/labels{/name}","comments_url":"https://api.github.com/repos/restsharp/RestSharp/issues/721/comments","events_url":"https://api.github.com/repos/restsharp/RestSharp/issues/721/events","html_url":"https://github.com/restsharp/RestSharp/issues/721","id":96445368,"number":721,"title":"\"The name of the parameter will be used as the Content-Type header for the request.\"","user":{"login":"EricYan1","id":12552123,"avatar_url":"https://avatars.githubusercontent.com/u/12552123?v=3","gravatar_id":"","url":"https://api.github.com/users/EricYan1","html_url":"https://github.com/EricYan1","followers_url":"https://api.github.com/users/EricYan1/followers","following_url":"https://api.github.com/users/EricYan1/following{/other_user}","gists_url":"https://api.github.com/users/EricYan1/gists{/gist_id}","starred_url":"https://api.github.com/users/EricYan1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/EricYan1/subscriptions","organizations_url":"https://api.github.com/users/EricYan1/orgs","repos_url":"https://api.github.com/users/EricYan1/repos","events_url":"https://api.github.com/users/EricYan1/events{/privacy}","received_events_url":"https://api.github.com/users/EricYan1/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/restsharp/RestSharp/labels/inquiry","name":"inquiry","color":"ededed"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-07-22T00:21:47Z","updated_at":"2015-07-22T17:55:46Z","closed_at":null,"body":"Hello,\r\nRestSharp is setting the Content-Type of a body in a multipart request to the name attribute of that body.\r\nIs it possible for RestSharp to not behave this way and instead set the Content-Type and name of a part independently?\r\n\r\nThis is what I am getting in my JSON body part,\r\n\r\n------boundary\r\nContent-Disposition: form-data; name=\"comment\"\r\nContent-Type: comment\r\n\r\n{ \"text\": \"This is a comment.\" }\r\n------boundary\r\n\r\nThis is what I'm looking for,\r\n\r\n------boundary\r\nContent-Disposition: form-data; name=\"comment\"\r\nContent-Type: application/json\r\n\r\n{ \"text\": \"This is a comment.\" }\r\n------boundary\r\n\r\n\r\nI am calling this RestSharp method,\r\n\r\nrestRequest.AddParameter(\"comment\", \"{\\\"text\\\":\\\"This is a comment.\\\"}\", ParameterType.RequestBody);\r\n\r\n\r\nThank you."},"comment":{"url":"https://api.github.com/repos/restsharp/RestSharp/issues/comments/123808423","html_url":"https://github.com/restsharp/RestSharp/issues/721#issuecomment-123808423","issue_url":"https://api.github.com/repos/restsharp/RestSharp/issues/721","id":123808423,"user":{"login":"hallem","id":1198158,"avatar_url":"https://avatars.githubusercontent.com/u/1198158?v=3","gravatar_id":"","url":"https://api.github.com/users/hallem","html_url":"https://github.com/hallem","followers_url":"https://api.github.com/users/hallem/followers","following_url":"https://api.github.com/users/hallem/following{/other_user}","gists_url":"https://api.github.com/users/hallem/gists{/gist_id}","starred_url":"https://api.github.com/users/hallem/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hallem/subscriptions","organizations_url":"https://api.github.com/users/hallem/orgs","repos_url":"https://api.github.com/users/hallem/repos","events_url":"https://api.github.com/users/hallem/events{/privacy}","received_events_url":"https://api.github.com/users/hallem/received_events","type":"User","site_admin":false},"created_at":"2015-07-22T17:55:46Z","updated_at":"2015-07-22T17:55:46Z","body":"I'm not sure what's happening here.  I'll take a look when I get a chance."}}