diff --git a/srcs/webserv/method_get.cpp b/srcs/webserv/method_get.cpp index a0bcd7c..fcc8045 100644 --- a/srcs/webserv/method_get.cpp +++ b/srcs/webserv/method_get.cpp @@ -127,7 +127,7 @@ void Webserv::_autoindex(Client *client, const std::string &path) if (strcmp(".", ent->d_name) == 0) continue ; dir_list.append("assigned_location->path + "/"); + dir_list.append(client->get_rq_abs_path() + "/"); dir_list.append(ent->d_name); dir_list.append("\">"); dir_list.append(ent->d_name); diff --git a/www/upload_form.html b/www/upload_form.html new file mode 100644 index 0000000..9eecb29 --- /dev/null +++ b/www/upload_form.html @@ -0,0 +1,10 @@ + +
+ + +