diff --git a/ReactNativeClient/lib/ClipperServer.js b/ReactNativeClient/lib/ClipperServer.js index cddd878e5..d7c1e5c94 100644 --- a/ReactNativeClient/lib/ClipperServer.js +++ b/ReactNativeClient/lib/ClipperServer.js @@ -147,6 +147,7 @@ class ClipperServer { const response = await this.api_.route(request.method, url.pathname, url.query, body, files); writeResponse(200, response); } catch (error) { + this.logger().error(error); writeResponse(error.httpCode ? error.httpCode : 500, error.message); } } @@ -173,7 +174,7 @@ class ClipperServer { } }); } else { - if (request.method === 'POST') { + if (request.method === 'POST' || request.method === 'PUT') { let body = ''; request.on('data', (data) => {