File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed
Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ server {
1414 }
1515
1616 location /upload {
17- allow_methods POST;
17+ allow_methods POST DELETE ;
1818 allow_uploads on;
1919 }
2020
@@ -34,5 +34,6 @@ server {
3434 location /cgi-bin/ {
3535 allow_methods GET POST;
3636 cgi_handler .bla /bin/sh;
37+ allow_uploads on;
3738 }
3839}
Original file line number Diff line number Diff line change @@ -68,13 +68,15 @@ const RouteConfig& Router::find_best_route(const std::string& request_path) cons
6868// This seems to be valid in some cases but we ignore it right now.
6969static bool is_cgi_request (const HttpRequest& request, const RouteConfig& route)
7070{
71+ LOG (DEBUG) << " shared.ext" << route.shared .cgi .extension ;
7172 if (route.shared .cgi .extension .empty ())
7273 return false ;
7374
7475 size_t dot = request.path .find_last_of (" ." );
7576 if (dot == std::string::npos)
7677 return false ;
77-
78+ std::string ext = request.path .substr (dot);
79+ LOG (DEBUG) << " ext = " << ext;
7880 return request.path .substr (dot) == route.shared .cgi .extension ;
7981}
8082
You can’t perform that action at this time.
0 commit comments