Remove TODOs

master
Nick Krichevsky 2018-09-10 00:27:04 -04:00
parent f13c77fb7a
commit 5c693677e6
2 changed files with 0 additions and 2 deletions

View File

@ -66,7 +66,6 @@ static struct line_read_result read_line(const char *buffer, int buffer_size, st
int name_size = header_delim - buffer;
char *header_name = malloc((name_size + 1) * sizeof(char));
// Need to subtract \r\n and colon.
// TODO: Support line-continued headers
int value_size = line_size - name_size - 3;
char *header_value = malloc((value_size + 1) * sizeof(char));
memcpy(header_name, buffer, name_size);

View File

@ -16,7 +16,6 @@ enum socket_read_strategy {STRATEGY_CONTENT_LENGTH, STRATEGY_EOF, STRATEGY_UNDEF
enum socket_type {TYPE_CLIENT, TYPE_SERVER};
struct line_read_result {
enum line_type line_type;
// TODO: this just gets freed... do we need it?
char *line;
int bytes_read;
};