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

Matching Body with multipart/form-data #144

@tamlyn

Description

@tamlyn

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions