From 07697384fd5d778a6517cdaa07d25f2a4267e738 Mon Sep 17 00:00:00 2001 From: Francesco Chemolli Date: Fri, 31 Jul 2015 17:05:22 +0200 Subject: [PATCH] Updated TODO --- src/HttpHeader.cc | 4 ++-- src/http/RegisteredHeaders.h | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/HttpHeader.cc b/src/HttpHeader.cc index bfe08d59f3..18e00c1ece 100644 --- a/src/HttpHeader.cc +++ b/src/HttpHeader.cc @@ -62,12 +62,12 @@ /* TODO: * DONE 1. shift HDR_BAD_HDR to end of enum - * 2. shift headers data array to http/RegistredHeaders.cc + * DONE 2. shift headers data array to http/RegistredHeaders.cc * DONE 3. creatign LookupTable object from teh enum and array * (with HDR_BAD_HDR as invalid value) * DONE 4. replacing httpHeaderIdByName() uses with the lookup table * 5. merge HDR_BAD_HDR and HDR_ENUM_END into one thing - * 6. replacing httpHeaderNameById with direct array lookups + * DONE 6. replacing httpHeaderNameById with direct array lookups * 7. being looking at the other arrays removal */ diff --git a/src/http/RegisteredHeaders.h b/src/http/RegisteredHeaders.h index 0ca367f30b..b44c37be51 100644 --- a/src/http/RegisteredHeaders.h +++ b/src/http/RegisteredHeaders.h @@ -120,6 +120,7 @@ typedef enum { } http_hdr_type; /** possible types for http header fields */ +//TODO: move to strongly-typed enums? (enum class) typedef enum { ftInvalid = HDR_ENUM_END, /**< to catch nasty errors with hdr_id<->fld_type clashes */ ftInt, -- 2.47.3