[mod-xhtml-neg-cvs] mod_xhtml_neg-2.0 mod_xhtml_neg.c,1.33,1.34
Brought to you by:
run2000
From: Nicholas C. <ru...@us...> - 2008-01-02 11:15:45
|
Update of /cvsroot/mod-xhtml-neg/mod_xhtml_neg-2.0 In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv25454 Modified Files: mod_xhtml_neg.c Log Message: Small fix: only service the main request, not any subrequests. This avoids a problem where an ETag may be modified twice. Index: mod_xhtml_neg.c =================================================================== RCS file: /cvsroot/mod-xhtml-neg/mod_xhtml_neg-2.0/mod_xhtml_neg.c,v retrieving revision 1.33 retrieving revision 1.34 diff -C2 -d -r1.33 -r1.34 *** mod_xhtml_neg.c 11 Jun 2004 11:38:43 -0000 1.33 --- mod_xhtml_neg.c 2 Jan 2008 11:15:38 -0000 1.34 *************** *** 1390,1393 **** --- 1390,1398 ---- }; + /* Only work on the main request - no subrequests. */ + if( r->main != NULL ) { + return DECLINED; + } + /* Return OK if either active isn't ON, or stars_ignore is 0. */ if( conf->active != active_on ) { |