aboutsummaryrefslogtreecommitdiff
path: root/src/server_http.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--tools/server/http.c (renamed from src/server_http.c)10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/server_http.c b/tools/server/http.c
index f155aec..a1d347f 100644
--- a/src/server_http.c
+++ b/tools/server/http.c
@@ -1,5 +1,5 @@
#include "server_internal.h"
-#include "server_util.h"
+#include "util.h"
#include <ctype.h>
#include <errno.h>
@@ -240,7 +240,7 @@ static int parse_request_headers(client *c) {
char *end = NULL;
errno = 0;
unsigned long long v = strtoull(cl, &end, 10);
- if (errno || !end || *end || v > EMBED_HTTP_MAX_BODY) {
+ if (errno || !end || *end || v > FFWD_HTTP_MAX_BODY) {
free(cl);
return -1;
}
@@ -255,7 +255,7 @@ static int complete_request(client *c) {
if (!c->header_done) {
ssize_t hend = find_header_end(c->in.ptr, c->in.len);
if (hend < 0) {
- if (c->in.len > EMBED_HTTP_MAX_HEADER)
+ if (c->in.len > FFWD_HTTP_MAX_HEADER)
return -1;
return 0;
}
@@ -264,7 +264,7 @@ static int complete_request(client *c) {
if (parse_request_headers(c) != 0)
return -1;
}
- if (c->content_length > EMBED_HTTP_MAX_BODY)
+ if (c->content_length > FFWD_HTTP_MAX_BODY)
return -1;
if (c->in.len < c->header_len + c->content_length)
return 0;
@@ -368,7 +368,7 @@ void read_cb(aeEventLoop *loop, int fd, void *clientData, int mask) {
(void)loop;
(void)mask;
client *c = clientData;
- char tmp[EMBED_HTTP_IO_BUF];
+ char tmp[FFWD_HTTP_IO_BUF];
for (;;) {
ssize_t n = read(fd, tmp, sizeof(tmp));
if (n > 0) {