Skip to content

Commit

Permalink
Set private method if unset
Browse files Browse the repository at this point in the history
  • Loading branch information
jacebrowning committed Jun 4, 2021
1 parent 013c1b7 commit ed161e6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion flask_api/__init__.py
@@ -1,3 +1,3 @@
from flask_api.app import FlaskAPI

__version__ = '3.0b5'
__version__ = '3.0b6'
2 changes: 2 additions & 0 deletions flask_api/request.py
Expand Up @@ -142,6 +142,8 @@ def _perform_method_overloading(self):
Also provides support for browser non-form requests (eg JSON),
by specifing '_content' and '_content_type' form fields.
"""
if not hasattr(self, '_method'):
self.method = super().method
self._stream = super().stream
self._content_type = self.headers.get('Content-Type')
self._content_length = get_content_length(self.environ)
Expand Down

0 comments on commit ed161e6

Please sign in to comment.