Open tamlyn opened 6 years ago
When POSTing with mutlipart/form-data the body and Content-type header contain a randomly generated boundary property:
mutlipart/form-data
Content-type
POST /api/auth/sign_in host: api.example.com content-type: multipart/form-data; boundary=--------------------------638137267150259757037725 body: ----------------------------638137267150259757037725\r\nContent-Disposition: form-data; name=\"email\"\r\n\r\nuser@example.com\r\n----------------------------638137267150259757037725\r\nContent-Disposition: form-data; name=\"password\"\r\n\r\nfoobar\r\n----------------------------638137267150259757037725--\r\n
This prevents subsequent requests from matching the pre-recorded response. Anyone have a solution for this (other than not matching on body and content-type)?
When POSTing with
mutlipart/form-data
the body andContent-type
header contain a randomly generated boundary property:This prevents subsequent requests from matching the pre-recorded response. Anyone have a solution for this (other than not matching on body and content-type)?