Skip to content

Conversation

pilat
Copy link
Contributor

@pilat pilat commented Mar 6, 2019

Hi,

My backend couldn't process requests when I tried send them from RapiDoc. Backend is based on Python CGI.
I investigated this issue and found a problem here. Request payload contains browser-generated boundary fields, but boundary isn't mentioned in Content-Type header. It confusing my backend.

According to RFC 2616 (section 3.7.2)

"All multipart types ... MUST include a boundary parameter as part of the media type value"

Then I read some advices. I think that best solution in this case: is not to specify Content-Type at all (only for multipart data, of course).

It works for me. But I checked it only from Chrome.

Copy link
Collaborator

@mrin9 mrin9 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for investigating this issue and finding a fix for it. Instead of doing away with the entire else block, can you put an comment so that we dont loose your findings ?

@mrin9 mrin9 merged commit 55d3896 into rapi-doc:master Mar 7, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants