-
Notifications
You must be signed in to change notification settings - Fork 6k
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
Invalid Swift code for multipart POST with query parameters #2557
Comments
I see much room for simplification here. Just to make sure, in following snippet: return requestBuilder.init(method: "POST", URLString: URLString, parameters: parameters, isBody: **false**) isBody is supposed to be true only in case of JSON encoded bodies, and false otherwise? |
@tomekc that's how I understand it. |
I did the fix, but found more serious issue deeper below. Apparently, RequestBuilder is not designed to support that case. I will go on and submit PR. |
PR merged. Issue closed. |
When endpoint is multipart/form-data and contains both form params and query params, like this one
Resulting code has double "falsefalse" argument in
I have found mustache template for this:
and probably end up with PR to fix :) Any suggestions are welcome, however :)
One thing I'd like to learn is what is "secondaryParam"?
The text was updated successfully, but these errors were encountered: