Commit 7a7b72e
committed
Merge branch 'bugfix/NotFound' into develop
Previously, the `[ValidateTopic]` attribute returned a custom error message alongside the `NotFound` result. As a result, the `UseStatusCodePages()` middleware failed to intercept the request since it had already written to the response stream. By removing this custom message, we ensure that the `UseStatusCodePages()` middleware can take effect. This includes an integration test to confirm this fix resolves the issue.2 files changed
Lines changed: 2 additions & 1 deletion
File tree
- OnTopic.AspNetCore.Mvc.IntegrationTests
- OnTopic.AspNetCore.Mvc/_filters
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
94 | 94 | | |
95 | 95 | | |
96 | 96 | | |
| 97 | + | |
97 | 98 | | |
98 | 99 | | |
99 | 100 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
75 | 75 | | |
76 | 76 | | |
77 | 77 | | |
78 | | - | |
| 78 | + | |
79 | 79 | | |
80 | 80 | | |
81 | 81 | | |
| |||
0 commit comments