[Zope-Checkins] CVS: Zope/ZServer - WebDAVSrcHandler.py:1.5

Martijn Pieters mj@zope.com
Thu, 16 Aug 2001 15:45:39 -0400


Update of /cvs-repository/Zope/ZServer
In directory cvs.zope.org:/tmp/cvs-serv9104

Modified Files:
	WebDAVSrcHandler.py 
Log Message:
Added 'WEBDAV_SOURCE_PORT' environment var to requests coming through the
WebDAV source port; now objects like the CookieCrumbler can adjust their
behaviour when being accessed through the WebDAV port.


=== Zope/ZServer/WebDAVSrcHandler.py 1.4 => 1.5 ===
         """
         env = zhttp_handler.get_environment( self, request )
+
+        # Set a flag to indicate this request came through the WebDAV source
+        # port server.
+        env['WEBDAV_SOURCE_PORT'] = 1
+        
         if env['REQUEST_METHOD'] == 'GET':
             path_info = env['PATH_INFO']
             path_info = os.path.join( path_info, 'manage_FTPget' )