aboutsummaryrefslogtreecommitdiffstats
path: root/Mailman/Utils.py
diff options
context:
space:
mode:
Diffstat (limited to 'Mailman/Utils.py')
-rw-r--r--Mailman/Utils.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/Mailman/Utils.py b/Mailman/Utils.py
index 1bbb9bb1..1a08c119 100644
--- a/Mailman/Utils.py
+++ b/Mailman/Utils.py
@@ -261,6 +261,11 @@ def GetPathPieces(envar='PATH_INFO'):
+def GetRequestMethod():
+ return os.environ.get('REQUEST_METHOD')
+
+
+
def ScriptURL(target, web_page_url=None, absolute=False):
"""target - scriptname only, nothing extra
web_page_url - the list's configvar of the same name