imbo / behat-api-extension

API extension for Behat, used to ease testing of JSON-based APIs
MIT License
109 stars 42 forks source link

Don't allow a request body when using multipart/form-data #7

Closed christeredvartsen closed 8 years ago

christeredvartsen commented 8 years ago

When attaching files to the request to make a multipart/form-data request, a request body should not be allowed.

See http://docs.guzzlephp.org/en/latest/request-options.html#multipart.