Skip to content

Commit

Permalink
Merge pull request proyecto26#229 from Kevinsomnia/fix/head-uses-delete
Browse files Browse the repository at this point in the history
Fix HEAD promise method incorrectly calling DELETE
  • Loading branch information
jdnichollsc authored Jan 20, 2023
2 parents 3cf90c1 + ed1009d commit 92a6824
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Proyecto26.RestClient/RestClientPromise.cs
Original file line number Diff line number Diff line change
Expand Up @@ -381,7 +381,7 @@ public static IPromise<ResponseHelper> Delete(RequestHelper options)
/// <param name="url">A string containing the URL to which the request is sent.</param>
public static IPromise<ResponseHelper> Head(string url)
{
return Delete(new RequestHelper { Uri = url });
return Head(new RequestHelper { Uri = url });
}

/// <summary>
Expand Down

0 comments on commit 92a6824

Please sign in to comment.