Skip to content
This repository has been archived by the owner on Nov 26, 2021. It is now read-only.

Commit

Permalink
updated to Redpanda.OpenFaaS.Functions
Browse files Browse the repository at this point in the history
  • Loading branch information
Goncalo Oliveira committed Nov 23, 2020
1 parent f306da7 commit 6f51e01
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/HttpRequestHandler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -116,15 +116,15 @@ private async Task<bool> MatchHttpAttributesAsync( HttpContext context )
}

}
else if ( !options.AllowCustomPath && ( context.Request.Path != "/" ) )
else if ( !options.IgnoreRoutingRules && ( context.Request.Path != "/" ) )
{
// attribute template is null. reject custom path unless allowed by options
await WriteNotFoundAsync( context );

return ( false );
}
}
else if ( !options.AllowCustomPath && ( context.Request.Path != "/" ) )
else if ( !options.IgnoreRoutingRules && ( context.Request.Path != "/" ) )
{
// if there are no http modifiers, we reject a custom path unless allowed by options
await WriteNotFoundAsync( context );
Expand Down
4 changes: 2 additions & 2 deletions src/faas-run.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<RuntimeIdentifier>linux-x64</RuntimeIdentifier>
<SelfContained>false</SelfContained>
<PublishSingleFile>true</PublishSingleFile>
<Version>0.3.1</Version>
<Version>0.4</Version>
<Authors>Goncalo Oliveira</Authors>
<Company>RedPanda Ltd</Company>
<Description>FaaS runner for ASPNET functions</Description>
Expand All @@ -18,7 +18,7 @@
<PackageReference Include="CommandLineParser" Version="2.8.0" />
<PackageReference Include="Microsoft.AspNetCore.Mvc.NewtonsoftJson" Version="5.0.0" />
<PackageReference Include="Microsoft.Extensions.DependencyModel" Version="5.0.0" />
<PackageReference Include="Redpanda.OpenFaaS.Http" Version="0.2.1" />
<PackageReference Include="Redpanda.OpenFaaS.Functions" Version="0.1.1" />
</ItemGroup>

</Project>

0 comments on commit 6f51e01

Please sign in to comment.