Browse Source

[core] remove unused func

personal/stbuehler/fix-fdevent
Glenn Strauss 3 years ago
parent
commit
e6564641d8
  1. 11
      src/request.c
  2. 1
      src/request.h

11
src/request.c

@ -1322,14 +1322,3 @@ int http_request_parse(server *srv, connection *con) {
return 0;
}
int http_request_header_finished(server *srv, connection *con) {
UNUSED(srv);
if (buffer_string_length(con->request.request) < 4) return 0;
if (0 == memcmp(con->request.request->ptr + buffer_string_length(con->request.request) - 4, CONST_STR_LEN("\r\n\r\n"))) return 1;
if (NULL != strstr(con->request.request->ptr, "\r\n\r\n")) return 1;
return 0;
}

1
src/request.h

@ -11,7 +11,6 @@ typedef enum {
} http_parseopts_e;
int http_request_parse(server *srv, connection *con);
int http_request_header_finished(server *srv, connection *con);
int http_request_host_normalize(buffer *b, int scheme_port);
int http_request_host_policy(connection *con, buffer *b, const buffer *scheme);

Loading…
Cancel
Save