Commit cc6debca authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

Add 5 dummy fields to the http headers, we will need them subsequently.


git-svn-id: http://www.varnish-cache.org/svn/trunk/varnish-cache@93 d4fa192b-c00b-0410-8231-f00ffab90ce4
parent 4d0dc3cb
......@@ -55,7 +55,7 @@ HttpdAnalyze(struct sess *sp)
if (*p == '\r')
p++;
#define HTTPH(a, b) sp->b = NULL;
#define HTTPH(a, b, c, d, e, f, g) sp->b = NULL;
#include "http_headers.h"
#undef HTTPH
......@@ -77,7 +77,7 @@ HttpdAnalyze(struct sess *sp)
continue; \
}
#define HTTPH(a, b) W(a ":", b, p, q, sp)
#define HTTPH(a, b, c, d, e, f, g) W(a ":", b, p, q, sp)
#include "http_headers.h"
#undef HTTPH
#undef W
......
......@@ -2,24 +2,24 @@
* $Id$
*/
HTTPH("Accept-Charset", H_Accept_Charset)
HTTPH("Accept-Encoding", H_Accept_Encoding)
HTTPH("Accept-Language", H_Accept_Language)
HTTPH("Accept", H_Accept)
HTTPH("Authorization", H_Authorization)
HTTPH("Connection", H_Connection)
HTTPH("Expect", H_Expect)
HTTPH("From", H_From)
HTTPH("Host", H_Host)
HTTPH("If-Match", H_If_Match)
HTTPH("If-Modified-Since", H_If_Modified_Since)
HTTPH("If-None-Match", H_If_None_Match)
HTTPH("If-Range", H_If_Range)
HTTPH("If-Unmodified-Since", H_If_Unmodifed_Since)
HTTPH("Keep-Alive", H_Keep_Alive)
HTTPH("Max-Forwards", H_Max_Forwards)
HTTPH("Proxy-Authorization", H_Proxy_Authorization)
HTTPH("Range", H_Range)
HTTPH("Referer", H_Referer)
HTTPH("TE", H_TE)
HTTPH("User-Agent", H_User_Agent)
HTTPH("Accept-Charset", H_Accept_Charset, 0, 0, 0, 0, 0)
HTTPH("Accept-Encoding", H_Accept_Encoding, 0, 0, 0, 0, 0)
HTTPH("Accept-Language", H_Accept_Language, 0, 0, 0, 0, 0)
HTTPH("Accept", H_Accept, 0, 0, 0, 0, 0)
HTTPH("Authorization", H_Authorization, 0, 0, 0, 0, 0)
HTTPH("Connection", H_Connection, 0, 0, 0, 0, 0)
HTTPH("Expect", H_Expect, 0, 0, 0, 0, 0)
HTTPH("From", H_From, 0, 0, 0, 0, 0)
HTTPH("Host", H_Host, 0, 0, 0, 0, 0)
HTTPH("If-Match", H_If_Match, 0, 0, 0, 0, 0)
HTTPH("If-Modified-Since", H_If_Modified_Since, 0, 0, 0, 0, 0)
HTTPH("If-None-Match", H_If_None_Match, 0, 0, 0, 0, 0)
HTTPH("If-Range", H_If_Range, 0, 0, 0, 0, 0)
HTTPH("If-Unmodified-Since", H_If_Unmodifed_Since, 0, 0, 0, 0, 0)
HTTPH("Keep-Alive", H_Keep_Alive, 0, 0, 0, 0, 0)
HTTPH("Max-Forwards", H_Max_Forwards, 0, 0, 0, 0, 0)
HTTPH("Proxy-Authorization", H_Proxy_Authorization, 0, 0, 0, 0, 0)
HTTPH("Range", H_Range, 0, 0, 0, 0, 0)
HTTPH("Referer", H_Referer, 0, 0, 0, 0, 0)
HTTPH("TE", H_TE, 0, 0, 0, 0, 0)
HTTPH("User-Agent", H_User_Agent, 0, 0, 0, 0, 0)
......@@ -14,6 +14,6 @@ SLTM(Request)
SLTM(URL)
SLTM(Protocol)
SLTM(H_Unknown)
#define HTTPH(a, b) SLTM(b)
#define HTTPH(a, b, c, d, e, f, g) SLTM(b)
#include "http_headers.h"
#undef HTTPH
......@@ -37,7 +37,7 @@ struct sess {
const char *req_b;
const char *url_b;
const char *proto_b;
#define HTTPH(a, b) const char *b;
#define HTTPH(a, b, c, d, e, f, g) const char *b;
#include <http_headers.h>
#undef HTTPH
......
......@@ -418,32 +418,32 @@ vcl_output_lang_h(FILE *f)
fputs(" const char *req_b;\n", f);
fputs(" const char *url_b;\n", f);
fputs(" const char *proto_b;\n", f);
fputs("#define HTTPH(a, b) const char *b;\n", f);
fputs("#define HTTPH(a, b, c, d, e, f, g) const char *b;\n", f);
fputs("/*\n", f);
fputs(" * $Id$\n", f);
fputs(" */\n", f);
fputs("\n", f);
fputs("HTTPH(\"Accept-Charset\", H_Accept_Charset)\n", f);
fputs("HTTPH(\"Accept-Encoding\", H_Accept_Encoding)\n", f);
fputs("HTTPH(\"Accept-Language\", H_Accept_Language)\n", f);
fputs("HTTPH(\"Accept\", H_Accept)\n", f);
fputs("HTTPH(\"Authorization\", H_Authorization)\n", f);
fputs("HTTPH(\"Connection\", H_Connection)\n", f);
fputs("HTTPH(\"Expect\", H_Expect)\n", f);
fputs("HTTPH(\"From\", H_From)\n", f);
fputs("HTTPH(\"Host\", H_Host)\n", f);
fputs("HTTPH(\"If-Match\", H_If_Match)\n", f);
fputs("HTTPH(\"If-Modified-Since\", H_If_Modified_Since)\n", f);
fputs("HTTPH(\"If-None-Match\", H_If_None_Match)\n", f);
fputs("HTTPH(\"If-Range\", H_If_Range)\n", f);
fputs("HTTPH(\"If-Unmodified-Since\", H_If_Unmodifed_Since)\n", f);
fputs("HTTPH(\"Keep-Alive\", H_Keep_Alive)\n", f);
fputs("HTTPH(\"Max-Forwards\", H_Max_Forwards)\n", f);
fputs("HTTPH(\"Proxy-Authorization\", H_Proxy_Authorization)\n", f);
fputs("HTTPH(\"Range\", H_Range)\n", f);
fputs("HTTPH(\"Referer\", H_Referer)\n", f);
fputs("HTTPH(\"TE\", H_TE)\n", f);
fputs("HTTPH(\"User-Agent\", H_User_Agent)\n", f);
fputs("HTTPH(\"Accept-Charset\", H_Accept_Charset, 0, 0, 0, 0, 0)\n", f);
fputs("HTTPH(\"Accept-Encoding\", H_Accept_Encoding, 0, 0, 0, 0, 0)\n", f);
fputs("HTTPH(\"Accept-Language\", H_Accept_Language, 0, 0, 0, 0, 0)\n", f);
fputs("HTTPH(\"Accept\", H_Accept, 0, 0, 0, 0, 0)\n", f);
fputs("HTTPH(\"Authorization\", H_Authorization, 0, 0, 0, 0, 0)\n", f);
fputs("HTTPH(\"Connection\", H_Connection, 0, 0, 0, 0, 0)\n", f);
fputs("HTTPH(\"Expect\", H_Expect, 0, 0, 0, 0, 0)\n", f);
fputs("HTTPH(\"From\", H_From, 0, 0, 0, 0, 0)\n", f);
fputs("HTTPH(\"Host\", H_Host, 0, 0, 0, 0, 0)\n", f);
fputs("HTTPH(\"If-Match\", H_If_Match, 0, 0, 0, 0, 0)\n", f);
fputs("HTTPH(\"If-Modified-Since\", H_If_Modified_Since, 0, 0, 0, 0, 0)\n", f);
fputs("HTTPH(\"If-None-Match\", H_If_None_Match, 0, 0, 0, 0, 0)\n", f);
fputs("HTTPH(\"If-Range\", H_If_Range, 0, 0, 0, 0, 0)\n", f);
fputs("HTTPH(\"If-Unmodified-Since\", H_If_Unmodifed_Since, 0, 0, 0, 0, 0)\n", f);
fputs("HTTPH(\"Keep-Alive\", H_Keep_Alive, 0, 0, 0, 0, 0)\n", f);
fputs("HTTPH(\"Max-Forwards\", H_Max_Forwards, 0, 0, 0, 0, 0)\n", f);
fputs("HTTPH(\"Proxy-Authorization\", H_Proxy_Authorization, 0, 0, 0, 0, 0)\n", f);
fputs("HTTPH(\"Range\", H_Range, 0, 0, 0, 0, 0)\n", f);
fputs("HTTPH(\"Referer\", H_Referer, 0, 0, 0, 0, 0)\n", f);
fputs("HTTPH(\"TE\", H_TE, 0, 0, 0, 0, 0)\n", f);
fputs("HTTPH(\"User-Agent\", H_User_Agent, 0, 0, 0, 0, 0)\n", f);
fputs("#undef HTTPH\n", f);
fputs("\n", f);
fputs(" enum {\n", f);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment