Remove TODOs
parent
f13c77fb7a
commit
5c693677e6
|
@ -66,7 +66,6 @@ static struct line_read_result read_line(const char *buffer, int buffer_size, st
|
||||||
int name_size = header_delim - buffer;
|
int name_size = header_delim - buffer;
|
||||||
char *header_name = malloc((name_size + 1) * sizeof(char));
|
char *header_name = malloc((name_size + 1) * sizeof(char));
|
||||||
// Need to subtract \r\n and colon.
|
// Need to subtract \r\n and colon.
|
||||||
// TODO: Support line-continued headers
|
|
||||||
int value_size = line_size - name_size - 3;
|
int value_size = line_size - name_size - 3;
|
||||||
char *header_value = malloc((value_size + 1) * sizeof(char));
|
char *header_value = malloc((value_size + 1) * sizeof(char));
|
||||||
memcpy(header_name, buffer, name_size);
|
memcpy(header_name, buffer, name_size);
|
||||||
|
|
|
@ -16,7 +16,6 @@ enum socket_read_strategy {STRATEGY_CONTENT_LENGTH, STRATEGY_EOF, STRATEGY_UNDEF
|
||||||
enum socket_type {TYPE_CLIENT, TYPE_SERVER};
|
enum socket_type {TYPE_CLIENT, TYPE_SERVER};
|
||||||
struct line_read_result {
|
struct line_read_result {
|
||||||
enum line_type line_type;
|
enum line_type line_type;
|
||||||
// TODO: this just gets freed... do we need it?
|
|
||||||
char *line;
|
char *line;
|
||||||
int bytes_read;
|
int bytes_read;
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue