mirror of
https://github.com/CommunitySolidServer/CommunitySolidServer.git
synced 2024-10-03 14:55:10 +00:00
@@ -20,7 +20,7 @@ export class AcceptPreferenceParser extends PreferenceParser {
|
||||
}
|
||||
|
||||
public async canHandle(): Promise<void> {
|
||||
return undefined;
|
||||
// Supports all HttpRequests
|
||||
}
|
||||
|
||||
public async handle(input: HttpRequest): Promise<RepresentationPreferences> {
|
||||
|
||||
@@ -32,7 +32,7 @@ export class SimpleBodyParser extends BodyParser {
|
||||
const contentType = input.headers['content-type'];
|
||||
|
||||
if (!contentType) {
|
||||
return undefined;
|
||||
return;
|
||||
}
|
||||
|
||||
const mediaType = contentType.split(';')[0];
|
||||
|
||||
Reference in New Issue
Block a user