You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I found a bug that when I send a POST/PUT/DELETE request, and TryStatic can't find the static file which matches that path, it will return 405 error instead of going to next middleware.
I've found the root cause is Rack::Static doesn't return 404 error if the request method is not GET or HEAD or OPTION, it returns 405(403 for old version), but in TryStatic, it just judge whether the status code is 404. So bug happens.
The text was updated successfully, but these errors were encountered:
bachue
added a commit
to bachue/rack-contrib
that referenced
this issue
Jan 26, 2014
Hi,
I found a bug that when I send a POST/PUT/DELETE request, and TryStatic can't find the static file which matches that path, it will return 405 error instead of going to next middleware.
This is the example how I use it:
My gem version:
rack: v1.5.2
rack-contrib: v1.1.0
I've found the root cause is Rack::Static doesn't return 404 error if the request method is not GET or HEAD or OPTION, it returns 405(403 for old version), but in TryStatic, it just judge whether the status code is 404. So bug happens.
The text was updated successfully, but these errors were encountered: