mirror of
https://github.com/jambonz/jambonz-feature-server.git
synced 2026-11-02 01:24:34 +00:00
minor cleanup
This commit is contained in:
1 parent
ffa006225b
commit
cb6817449d
3 files changed
+19
-6
No files matched your search
@@ -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