You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Double quotes option for multipart/form-data boundary #2011
I was able to fix it when the content type header is added manually to the request using AddHeader. But when the constructor of MultipartFormDataContent is called, RestSharp provides it with the boundary without quotes, and here what happens in .NET code:
Activity
alexeyzimarev commentedon Mar 12, 2023
The option already exists, but it wasn't applied in that case.
alexeyzimarev commentedon Mar 12, 2023
I am wrong, the option is to use quotes around parameter names, sorry.
alexeyzimarev commentedon Mar 30, 2023
I was able to fix it when the content type header is added manually to the request using
AddHeader. But when the constructor ofMultipartFormDataContentis called, RestSharp provides it with the boundary without quotes, and here what happens in .NET code:I made a change to re-create the content type header to work around this.