node.js - 404 Error Due to Head request from Bot -



node.js - 404 Error Due to Head request from Bot -

i have node.js app running express.js. site works fine when requesting: https://mysite.com/ browser.

i setup grab 404 , log url requested (to see users getting confused, etc.). however, maintain getting 404 log message url https://mysite.com/

here more details on user agent triggers this:

req.headers[user-agent]: "google-http-java-client/1.17.0-rc (gzip)" req.route.method : "head"

i think bot requesting "head" instead of "get". why bot head request? should prepare allowing responses in express both head , get?

node.js express http-status-code-404 web-crawler

Comments

Popular posts from this blog

formatting - SAS SQL Datepart function returning odd values -

c++ - Apple Mach-O Linker Error(Duplicate Symbols For Architecture armv7) -

php - Yii 2: Unable to find a class into the extension 'yii2-admin' -