-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
HTTP HEAD request results in 404 #924
Comments
you can go with this code of proxy:
|
You can use the proxy method, or you'll have to extend the middleware to handle HEAD requests. At present it only supports GET. You can view some of the setup for that here. I think this would be a little too edge case to make it a permanent part of WDS. |
Why this is closed? It is a normal use case to check etag with HEAD request. This |
@shellscape It's also a common use-case to use a HEAD request to check whether the server is running. Can you please reopen? Example: https://github.com/sindresorhus/wait-for-localhost/blob/master/index.js |
+1 Please add support for HEAD method requests as it is a common HTTP Method to use instead of GET when only the headers are needed. |
Also critical is using method FYI @addyosmani @bezoerb |
Continued in #1833. |
Do you want to request a feature or report a bug?
Bug.
What is the current behavior?
HTTP HEAD method requests result in a 404: Not Found even though the resource exists and is retrievable using HTTP GET.
If the current behavior is a bug, please provide the steps to reproduce.
Compile using webpack and request any file:
Please mention your webpack and Operating System version.
Tested on Windows 10 with dev server 2.4.5 and webpack 2.6.1
The text was updated successfully, but these errors were encountered: