mirror of
https://github.com/jambonz/jambonz-feature-server.git
synced 2025-12-20 08:40:38 +00:00
minor cleanup
This commit is contained in:
@@ -127,7 +127,7 @@ class HttpRequestor extends BaseRequestor {
|
||||
err.statusCode = statusCode;
|
||||
throw err;
|
||||
}
|
||||
if (headers['content-type'].includes('application/json')) {
|
||||
if (headers['content-type']?.includes('application/json')) {
|
||||
buf = await body.json();
|
||||
}
|
||||
if (newClient) newClient.close();
|
||||
|
||||
Reference in New Issue
Block a user