dharmendrakshl1 / rest-assured

Automatically exported from code.google.com/p/rest-assured
0 stars 0 forks source link

Missing parameter in RequestSpecBuilder.addMultipart #343

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Create a RequestSpecBuilder
2. Add MultiPart String data and set mime type e.g. to application/json
3. Use spec e.g. in post request

What is the expected output? What do you see instead?

Expected mime type of multipart data to be application/json. Instead it is 
application/octet-stream

What version of the product are you using? On what operating system?

2.3.2 on OS X

Please provide any additional information below.

Line 945 does not forward required parameters. I guess it should read:

public RequestSpecBuilder addMultiPart(String controlName, String contentBody, 
String mimeType) {
        spec.multiPart(controlName, contentBody, mimeType);
        return this;
    }

(contentBody is currently missing)

Original issue reported on code.google.com by jan.gas...@centerdevice.com on 21 Jul 2014 at 4:09

GoogleCodeExporter commented 9 years ago

Original comment by johan.ha...@gmail.com on 25 Jul 2014 at 5:00

GoogleCodeExporter commented 9 years ago
Thanks for reporting

Original comment by johan.ha...@gmail.com on 25 Jul 2014 at 5:02