Don't warn for empty client data
This commit is contained in:
parent
6d60dd9966
commit
18bf274641
|
@ -57,7 +57,7 @@ http
|
|||
req.on("end", () => {
|
||||
const sender = req.headers["user-agent"];
|
||||
if (!isPost) {
|
||||
logger.warn(`${emp(sender)} sent no data.`)
|
||||
logger.log(`${emp(sender)} sent no data.`)
|
||||
|
||||
res.writeHead(400, contentType);
|
||||
res.write(response.error("Invalid content-type"));
|
||||
|
|
Loading…
Reference in a new issue