Skip to content

Commit

Permalink
Move dontTrustVaryEtag to http.c.
Browse files Browse the repository at this point in the history
darcs-hash:20061228002505-4cc09-c110a3af41f3e90953459a1dcb68a197f1e39023.gz
  • Loading branch information
jech committed Dec 28, 2006
1 parent 148f04f commit bd4eea0
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
3 changes: 3 additions & 0 deletions http.c
Expand Up @@ -42,6 +42,7 @@ NetAddressPtr allowedNets = NULL;
IntListPtr allowedPorts = NULL;
IntListPtr tunnelAllowedPorts = NULL;
int expectContinue = 1;
int dontTrustVaryETag = 0;

AtomPtr atom100Continue;

Expand Down Expand Up @@ -99,6 +100,8 @@ preinitHttp()
"Size of big buffers (max size of headers).");
CONFIG_VARIABLE_SETTABLE(disableVia, CONFIG_BOOLEAN, configIntSetter,
"Don't use Via headers.");
CONFIG_VARIABLE(dontTrustVaryETag, CONFIG_BOOLEAN,
"If true, don't trust the ETag when there's Vary.");
preinitHttpParser();
}

Expand Down
1 change: 1 addition & 0 deletions http.h
Expand Up @@ -138,6 +138,7 @@ extern IntListPtr tunnelAllowedPorts;
extern int expectContinue;
extern AtomPtr atom100Continue;
extern int disableVia;
extern int dontTrustVaryETag;

void preinitHttp(void);
void initHttp(void);
Expand Down
3 changes: 0 additions & 3 deletions server.c
Expand Up @@ -35,7 +35,6 @@ int pmmFirstSize = 0, pmmSize = 0;
int serverSlots = 2;
int serverMaxSlots = 8;
int dontCacheRedirects = 0;
int dontTrustVaryETag = 0;

static HTTPServerPtr servers = 0;

Expand Down Expand Up @@ -74,8 +73,6 @@ preinitServer(void)
"Maximum number of connections per broken server.");
CONFIG_VARIABLE(dontCacheRedirects, CONFIG_BOOLEAN,
"If true, don't cache redirects.");
CONFIG_VARIABLE(dontTrustVaryETag, CONFIG_BOOLEAN,
"If true, don't trust the ETag when there's Vary.");
}

static int
Expand Down
2 changes: 1 addition & 1 deletion server.h
Expand Up @@ -20,7 +20,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
*/

extern int serverExpireTime, dontCacheRedirects, dontTrustVaryETag;
extern int serverExpireTime, dontCacheRedirects;

typedef struct _HTTPServer {
char *name;
Expand Down

0 comments on commit bd4eea0

Please sign in to comment.