Skip to content

Commit

Permalink
Merge pull request #431 from EhsanValiGeeksltd/master
Browse files Browse the repository at this point in the history
Fix "HEAD" method request issue
  • Loading branch information
PaymonK authored Feb 25, 2025
2 parents d5b9552 + 349f5f9 commit 7a718cd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
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
2 changes: 1 addition & 1 deletion Olive.Web/Olive.Web.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>netcoreapp3.1</TargetFramework>
<Version>3.1.112</Version>
<Version>3.1.113</Version>
</PropertyGroup>

<ItemGroup>
Expand Down

0 comments on commit 7a718cd

Please sign in to comment.