Skip to content
This repository has been archived by the owner on Jul 13, 2021. It is now read-only.

Commit

Permalink
Export atomContentType and atomContentEncoding.
Browse files Browse the repository at this point in the history
darcs-hash:20061228014745-4cc09-f573057d24def3ce8592024b944b447832fc10bf.gz
  • Loading branch information
jech committed Dec 28, 2006
1 parent 18f6022 commit 954e43b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
5 changes: 4 additions & 1 deletion http_parse.c
Expand Up @@ -36,11 +36,13 @@ static AtomPtr atomConnection, atomProxyConnection, atomContentLength,
atomIfModifiedSince, atomIfUnmodifiedSince, atomIfRange, atomLastModified,
atomIfMatch, atomIfNoneMatch, atomAge, atomTransferEncoding,
atomETag, atomCacheControl, atomPragma, atomContentRange, atomRange,
atomVia, atomContentType, atomVary, atomExpect, atomAuthorization,
atomVia, atomVary, atomExpect, atomAuthorization,
atomSetCookie, atomCookie, atomCookie2,
atomXPolipoDate, atomXPolipoAccess, atomXPolipoLocation,
atomXPolipoBodyOffset;

AtomPtr atomContentType, atomContentEncoding;

int censorReferer = 0;
int laxHttpParser = 1;

Expand Down Expand Up @@ -96,6 +98,7 @@ initHttpParser()
A(atomRange, "range");
A(atomVia, "via");
A(atomContentType, "content-type");
A(atomContentEncoding, "content-encoding");
A(atomVary, "vary");
A(atomExpect, "expect");
A(atomAuthorization, "authorization");
Expand Down
1 change: 1 addition & 0 deletions http_parse.h
Expand Up @@ -27,6 +27,7 @@ typedef struct HTTPRange {
} HTTPRangeRec, *HTTPRangePtr;

extern int censorReferer;
extern AtomPtr atomContentType, atomContentEncoding;

void preinitHttpParser(void);
void initHttpParser(void);
Expand Down

0 comments on commit 954e43b

Please sign in to comment.