mirror of
https://github.com/CommunitySolidServer/CommunitySolidServer.git
synced 2024-10-03 14:55:10 +00:00
feat: Decode URI in target extractor
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
import type { TLSSocket } from 'tls';
|
||||
import { format } from 'url';
|
||||
import type { HttpRequest } from '../../server/HttpRequest';
|
||||
import { toCanonicalUrl } from '../../util/Util';
|
||||
import type { ResourceIdentifier } from '../representation/ResourceIdentifier';
|
||||
import { TargetExtractor } from './TargetExtractor';
|
||||
|
||||
@@ -28,6 +29,6 @@ export class BasicTargetExtractor extends TargetExtractor {
|
||||
pathname: input.url,
|
||||
});
|
||||
|
||||
return { path: url };
|
||||
return { path: toCanonicalUrl(url) };
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user