Skip to content

Commit

Permalink
Set the boundary quote marks to true as it's the current default
Browse files Browse the repository at this point in the history
  • Loading branch information
alexeyzimarev committed Mar 29, 2023
1 parent 89db963 commit 76dfa39
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/RestSharp/Request/RequestContent.cs
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ void AddPostParameters(GetOrPostParameter[] postParameters) {
}
}

static string GetBoundary(string boundary, bool quite) => quite ? $"\"{boundary}\"" : boundary;
static string GetBoundary(string boundary, bool quote) => quote ? $"\"{boundary}\"" : boundary;

void AddHeaders() {
var contentHeaders = _request.Parameters
Expand Down
2 changes: 1 addition & 1 deletion src/RestSharp/Request/RestRequest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ public RestRequest(Uri resource, Method method = Method.Get)
/// quotation marks. Default is false. Enable it if the remote endpoint requires parameters
/// to be in quotes (for example, FreshDesk API).
/// </summary>
public bool MultipartFormQuoteParameters { get; set; }
public bool MultipartFormQuoteParameters { get; set; } = true;

public string? FormBoundary { get; set; }

Expand Down

0 comments on commit 76dfa39

Please sign in to comment.