Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions ppp_libmodule/http.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,10 +111,10 @@ def on_options(self):

def dispatch(self):
"""Handles dispatching of the request."""
if self.environ['REQUEST_METHOD'] == 'POST':
return self.on_post()
elif self.environ['REQUEST_METHOD'] == 'OPTIONS':
return self.on_options()
method_name = 'on_' + self.environ['REQUEST_METHOD'].lower()
method = getattr(self, method_name, None)
if method:
return method()
else:
return self.on_bad_method()

2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

setup(
name='ppp_libmodule',
version='0.7.1',
version='0.7.2',
description='Library for writing Python modules for the PPP.',
url='https://github.com/ProjetPP/PPP-libmodule-Python',
author='Valentin Lorentz',
Expand Down