From 5c693677e6b65cbbd0be4c10d15115d8f19abc77 Mon Sep 17 00:00:00 2001 From: Nick Krichevsky Date: Mon, 10 Sep 2018 00:27:04 -0400 Subject: [PATCH] Remove TODOs --- common/socket_helper.c | 1 - common/socket_helper.h | 1 - 2 files changed, 2 deletions(-) diff --git a/common/socket_helper.c b/common/socket_helper.c index ba80e37..4231bab 100644 --- a/common/socket_helper.c +++ b/common/socket_helper.c @@ -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); diff --git a/common/socket_helper.h b/common/socket_helper.h index cb19af3..0ecea63 100644 --- a/common/socket_helper.h +++ b/common/socket_helper.h @@ -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; };