diff options
Diffstat (limited to 'src/handler.c')
-rw-r--r-- | src/handler.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/handler.c b/src/handler.c index bc8af39..a6617ca 100644 --- a/src/handler.c +++ b/src/handler.c @@ -59,11 +59,11 @@ static bool sanitize(const char *uri) int tip_client_state_process_payload(struct tip_client *cli) { - const char *trailer, *x_redirect; bool allow_redirect = true; char _uri[256], *uri = _uri; char allow_redirect_str[5]; char path[PATH_MAX + 1]; + const char *x_redirect; char *chunk = NULL; struct stat st; int err; @@ -94,8 +94,6 @@ int tip_client_state_process_payload(struct tip_client *cli) !strncmp(allow_redirect_str, "off", strlen("off"))) allow_redirect = false; - trailer = strstr(cli->buf, "\r\n\r\n"); - if (!sanitize(uri)) return tip_client_method_not_found(cli); |