{"action":"created","issue":{"url":"https://api.github.com/repos/jayway/rest-assured/issues/80","labels_url":"https://api.github.com/repos/jayway/rest-assured/issues/80/labels{/name}","comments_url":"https://api.github.com/repos/jayway/rest-assured/issues/80/comments","events_url":"https://api.github.com/repos/jayway/rest-assured/issues/80/events","html_url":"https://github.com/jayway/rest-assured/issues/80","id":96071342,"number":80,"title":"How to set additional headers and content type to multiPart section?","user":{"login":"johanhaleby","id":187029,"avatar_url":"https://avatars.githubusercontent.com/u/187029?v=3","gravatar_id":"","url":"https://api.github.com/users/johanhaleby","html_url":"https://github.com/johanhaleby","followers_url":"https://api.github.com/users/johanhaleby/followers","following_url":"https://api.github.com/users/johanhaleby/following{/other_user}","gists_url":"https://api.github.com/users/johanhaleby/gists{/gist_id}","starred_url":"https://api.github.com/users/johanhaleby/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/johanhaleby/subscriptions","organizations_url":"https://api.github.com/users/johanhaleby/orgs","repos_url":"https://api.github.com/users/johanhaleby/repos","events_url":"https://api.github.com/users/johanhaleby/events{/privacy}","received_events_url":"https://api.github.com/users/johanhaleby/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/jayway/rest-assured/labels/auto-migrated","name":"auto-migrated","color":"ededed"},{"url":"https://api.github.com/repos/jayway/rest-assured/labels/Priority-Medium","name":"Priority-Medium","color":"ededed"},{"url":"https://api.github.com/repos/jayway/rest-assured/labels/Type-Defect","name":"Type-Defect","color":"ededed"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-07-20T14:03:55Z","updated_at":"2015-07-20T14:03:56Z","closed_at":null,"body":"```\nWhat steps will reproduce the problem?\nI'm looking for a way to add additional headers and content-type to multipart \nsection(according to my Request Payload), for example I would like to be able \nto add \n\nContent-Disposition: form-data; name=\"file\"; filename=\"pincode_master_data.csv\"\nContent-Type: text/csv\n\nWhen i tried Using :   given().multiPart(\"file\",new \nFile(\"/home/ravi/Downloads/pincode_master_data.csv\")).expect().statuscode(\"200\")\n.when().post(\"/\");\n\nI got an error: That status code is 400\n\nIf i want to make use of MultiPartSpecBuilder, please let me know, how i need \nto use it.\n\nWhat is the expected output? What do you see instead?\nWithout providing headers/content-type to the multipart, the Rest API i am \ntrying to invoke does not work. It does not upload the excel file to the server \nif multipart headers/content-type are not provided.\n\n\nWhat version of the product are you using? On what operating system?\nI am using latest version of Rest Assured library (rest-assured-2.4.1.jar) on \nUbuntu OS.\n\nPlease provide any additional information below.\n\nIf normally i set the header/content-type to the request then it will just be \nadded to the request and not to a particular multi-part section.\nPlease look closely into the issue as it is a basic requirement.\n```\n\nOriginal issue reported on code.google.com by `ravithej...@gmail.com` on 6 May 2015 at 5:39"},"comment":{"url":"https://api.github.com/repos/jayway/rest-assured/issues/comments/122895405","html_url":"https://github.com/jayway/rest-assured/issues/80#issuecomment-122895405","issue_url":"https://api.github.com/repos/jayway/rest-assured/issues/80","id":122895405,"user":{"login":"johanhaleby","id":187029,"avatar_url":"https://avatars.githubusercontent.com/u/187029?v=3","gravatar_id":"","url":"https://api.github.com/users/johanhaleby","html_url":"https://github.com/johanhaleby","followers_url":"https://api.github.com/users/johanhaleby/followers","following_url":"https://api.github.com/users/johanhaleby/following{/other_user}","gists_url":"https://api.github.com/users/johanhaleby/gists{/gist_id}","starred_url":"https://api.github.com/users/johanhaleby/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/johanhaleby/subscriptions","organizations_url":"https://api.github.com/users/johanhaleby/orgs","repos_url":"https://api.github.com/users/johanhaleby/repos","events_url":"https://api.github.com/users/johanhaleby/events{/privacy}","received_events_url":"https://api.github.com/users/johanhaleby/received_events","type":"User","site_admin":false},"created_at":"2015-07-20T14:03:56Z","updated_at":"2015-07-20T14:03:56Z","body":"```\nCan some provide the details on how to fix this issue??\n```\n\nOriginal comment by `satyanag...@gmail.com` on 21 Jun 2015 at 2:41"}}