]> err.no Git - varnish/commitdiff
Add 5 dummy fields to the http headers, we will need them subsequently.
authorphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Mon, 3 Apr 2006 07:14:24 +0000 (07:14 +0000)
committerphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Mon, 3 Apr 2006 07:14:24 +0000 (07:14 +0000)
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@93 d4fa192b-c00b-0410-8231-f00ffab90ce4

varnish-cache/bin/varnishd/cache_httpd.c
varnish-cache/include/http_headers.h
varnish-cache/include/shmlog_tags.h
varnish-cache/include/vcl_lang.h
varnish-cache/lib/libvcl/vcl_fixed_token.c

index 4e68c90f10449770da358e42fccc88777a217cce..cf6f47566b722e8bf27c78c22e9b4c74befee35d 100644 (file)
@@ -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
index 174d46d2c9cfc80710dc6ab4fe9287bae14c9c19..152c5879ecfcb38b175fda79f7cfffa7eb67011c 100644 (file)
@@ -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)
index e251ef75dbf7bdca62dd9a10d938da60f91e101c..2522e9e4b463871678773977b2b629326cd554b6 100644 (file)
@@ -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
index 4af3e8dfa02bcb3587d869c6d6ba591dcd9a9a85..ee3a3f61b44283db38c75b4a2e5e51069cbd6405 100644 (file)
@@ -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
 
index c05f0efc1b6d735231bec9accf015885ac168d44..47506cb260fa1add36c79e293e294d3f90b6e92d 100644 (file)
@@ -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);