Store Range: header

This commit is contained in:
Kamil Trzcinski
2022-04-12 11:56:35 +02:00
parent 70b9a513ad
commit 6d0492e35a
3 changed files with 15 additions and 3 deletions

View File

@ -11,6 +11,8 @@ typedef struct http_worker_s http_worker_t;
typedef void (*http_method_fn)(struct http_worker_s *worker, FILE *stream);
#define BUFSIZE 256
typedef struct http_method_s {
const char *name;
http_method_fn func;
@ -29,7 +31,8 @@ typedef struct http_worker_s {
int client_fd;
struct sockaddr_in client_addr;
char *client_host;
char client_method[256];
char client_method[BUFSIZE];
char range_header[BUFSIZE];
http_method_t *current_method;
} http_worker_t;