Skip to content
This repository has been archived by the owner on Dec 16, 2023. It is now read-only.

Matching Body with multipart/form-data #144

Open
tamlyn opened this issue Jan 3, 2018 · 0 comments
Open

Matching Body with multipart/form-data #144

tamlyn opened this issue Jan 3, 2018 · 0 comments

Comments

@tamlyn
Copy link

tamlyn commented Jan 3, 2018

When POSTing with mutlipart/form-data the body and Content-type header contain a randomly generated boundary property:

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)?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant