feat: add reverse proxy request routing with header forwarding in rproxy.c

This commit is contained in:
retoor 2025-11-01 18:30:46 +00:00
parent 73c9c47892
commit 19a0c92fd0

View File

@ -320,7 +320,7 @@ static inline void buffer_consume(buffer_t *buf, size_t bytes) {
// --- String Utilities ---
static int is_valid_http_method(const char *method) {
const char *valid_methods[] = {"GET", "POST", "PUT", "DELETE", "HEAD",
"OPTIONS", "PATCH", "TRACE", "CONNECT", NULL};
"OPTIONS", "PATCH", "TRACE", "CONNECT","PROPFIND","PROPPATCH","MKCOL","MOVE","COPY","PROPDEL","LOCK","UNLOCK", NULL};
for (int i = 0; valid_methods[i]; i++) {
if (strcmp(method, valid_methods[i]) == 0) return 1;
}