Skip to content

Commit

Permalink
revert #81
Browse files Browse the repository at this point in the history
  • Loading branch information
michielbdejong committed Jan 29, 2025
1 parent 92772e4 commit a2ebfa8
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/http/output/PivotResponseWriter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,7 @@ export class PivotResponseWriter extends BasicResponseWriter {
if (
(input.response.req.method === 'GET') &&
(typeof input.response.req.url === 'string') &&
// This was changed in https://github.com/solid-contrib/pivot/pull/81:
// ([401, 403, 404].indexOf(input.result.statusCode) !== -1) &&
(input.result.statusCode === 404) &&
([401, 403, 404].indexOf(input.result.statusCode) !== -1) &&
(hasTrailingSlash(input.response.req.url) === false)) {
const target = await this.targetExtractor.handleSafe({ request: input.response.req as HttpRequest });
const withSlash = addTrailingSlash(target.path);
Expand Down

0 comments on commit a2ebfa8

Please sign in to comment.