This commit is contained in:
Me
2022-08-12 04:38:07 +02:00
parent ab0bc2c4c0
commit f7c0ff1a8a
11 changed files with 27 additions and 103 deletions

View File

@@ -19,9 +19,6 @@
# include <iostream>
# include <sys/stat.h> // stat()
# include <stdio.h> // printf(), gotta go
# include "utils.hpp"
// again, struct instead?
@@ -31,7 +28,7 @@ public:
// canonic stuff?
std::string path; // /path and /path/ are fine
// i add trailing / if a dir
// i remove trailing / systematically
std::string root;
std::vector<std::string> index;
unsigned int allow_methods;
@@ -42,10 +39,8 @@ public:
int redirect_status; // only in location
std::string redirect_uri; // only 1 per location
// au pire you do location / { return 301 http://location; }
// and that's how you get the redirect from the root.
void print_all()
void print_all() // const?
{
std::cout << "\nPRINTING A LOCATION\n";