Skip to content

Commit

Permalink
fix "HEAD" method issue
Browse files Browse the repository at this point in the history
  • Loading branch information
EhsanValiGeeksltd committed Feb 22, 2025
1 parent 37bdc1c commit e5d80d6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Olive.Web/Extensions/HttpRequest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@ public static bool IsAjaxCall(this HttpRequest @this)
/// <summary>
/// Determines if this is a GET http request.
/// </summary>
public static bool IsGet(this HttpRequest @this) => @this.Method == System.Net.WebRequestMethods.Http.Get;
public static bool IsGet(this HttpRequest @this) => @this.Method == System.Net.WebRequestMethods.Http.Get || @this.Method == System.Net.WebRequestMethods.Http.Head;

/// <summary>
/// Determines if this is a POST http request.
Expand Down

0 comments on commit e5d80d6

Please sign in to comment.