-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Multipart request bodies need to use \r\n instead of only \n #401
Labels
Comments
3 tasks
honzajavorek
added a commit
to apiaryio/dredd-transactions
that referenced
this issue
Jul 30, 2018
honzajavorek
added a commit
to apiaryio/dredd-transactions
that referenced
this issue
Jul 30, 2018
This was previously a core part of Dredd. It belongs to Dredd Transactions though as it's a format-specific bug fix. Ideally, Dredd shouldn't need to know anything about the specifics of formats, Dredd Transactions should provide a uniform interface. apiaryio/api-blueprint#401
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Multipart request example in API Blueprint results in body asset containing newlines formed by
\n
only. However, such asset isn't valid and usable as raw HTTP payload, all infrastructure counts with\r\n
being in place.Dredd currently fixes this, but I consider it as a workaround. I think the API Blueprint format should take care of this and to provide user with a correct, raw HTTP representation of a body. I guess if other API description formats support multipart, let's say in some declarative way, or if #100 gets implemented in API Blueprint, the API Elements asset should contain the body with
\r\n
, not with\n
.Example API Blueprint:
Resulting asset:
Expected resulting asset:
The text was updated successfully, but these errors were encountered: