Skip to content

Commit

Permalink
fix accept metadata checking
Browse files Browse the repository at this point in the history
  • Loading branch information
dj-nitehawk committed Mar 20, 2023
1 parent 8d818f9 commit c933bee
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Src/Directory.Build.props
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project>
<PropertyGroup>

<Version>5.8.0.5-beta</Version>
<Version>5.8.0.6-beta</Version>

<TargetFrameworks>net6.0;net7.0</TargetFrameworks>
<LangVersion>latest</LangVersion>
Expand Down
1 change: 1 addition & 0 deletions Src/Library/Main/RequestHandler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ private static bool PrepAndCheckAcceptsMetaData(HttpContext ctx, EndpointDefinit
def.AcceptsAnyContentType = meta.ContentTypes.Contains("*/*");
}
}
def.AcceptsMetaDataPresent ??= false;
}

// if following conditions are met:
Expand Down
3 changes: 2 additions & 1 deletion Src/Library/changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,5 @@
- double response issue if pre-processor sent response and validator also has failures. [#info](https://discord.com/channels/933662816458645504/1080609437879914506)
- `EndpointWithMapping<TRequest, TResponse, TEntity>` map methods becoming protected in v5.8 [#info](https://discord.com/channels/933662816458645504/1082207914376319026)
- endpoint factory being inferred from request body issue [#info](https://discord.com/channels/933662816458645504/1084841217898061915)
- incorrect swagger spec generation issue [#info](https://discord.com/channels/933662816458645504/1085966972560347237)
- incorrect swagger spec generation issue [#info](https://discord.com/channels/933662816458645504/1085966972560347237)
- minor oversight in accept metadata checking/caching per endpoint on first request [#info](https://discord.com/channels/933662816458645504/1085526696406548604/1087362733021872200)

0 comments on commit c933bee

Please sign in to comment.