You are viewing a plain text version of this content. The canonical link for it is here.
Posted to mod_python-commits@quetz.apache.org by jg...@apache.org on 2006/01/11 01:03:07 UTC

svn commit: r367839 - /httpd/mod_python/trunk/src/requestobject.c

Author: jgallacher
Date: Tue Jan 10 16:03:06 2006
New Revision: 367839

URL: http://svn.apache.org/viewcvs?rev=367839&view=rev
Log:
Changed code in req_add_handler() of requestobject.c to use NOTSILENT
instead of 0. This should make the intent of code clearer in as much as
highlighting that an exception will be raised if handler not found.
Ref MODPYTHON-98

Modified:
    httpd/mod_python/trunk/src/requestobject.c

Modified: httpd/mod_python/trunk/src/requestobject.c
URL: http://svn.apache.org/viewcvs/httpd/mod_python/trunk/src/requestobject.c?rev=367839&r1=367838&r2=367839&view=diff
==============================================================================
--- httpd/mod_python/trunk/src/requestobject.c (original)
+++ httpd/mod_python/trunk/src/requestobject.c Tue Jan 10 16:03:06 2006
@@ -147,7 +147,7 @@
 
         /* then just append to hlist */
         hlist_append(self->request_rec->pool, self->hlo->head,
-                     handler, dir, 0);
+                     handler, dir, NOTSILENT);
     }
     else {
         /* this is a phase that we're not in */
@@ -163,11 +163,11 @@
         hle = apr_hash_get(req_config->dynhls, phase, APR_HASH_KEY_STRING);
 
         if (! hle) {
-            hle = hlist_new(self->request_rec->pool, handler, dir, 0);
+            hle = hlist_new(self->request_rec->pool, handler, dir, NOTSILENT);
             apr_hash_set(req_config->dynhls, phase, APR_HASH_KEY_STRING, hle);
         }
         else {
-            hlist_append(self->request_rec->pool, hle, handler, dir, 0);
+            hlist_append(self->request_rec->pool, hle, handler, dir, NOTSILENT);
         }
     }