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