10000 Release v3.0 by jacebrowning · Pull Request #135 · flask-api/flask-api · GitHub
[go: up one dir, main page]

Skip to content

Release v3.0 #135

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 11 commits into from
Jun 15, 2021
Prev Previous commit
Next Next commit
Set private method if unset
  • Loading branch information
jacebrowning committed Jun 4, 2021
commit ed161e6a7e1b1e7d1df015b075860b611904aff0
2 changes: 1 addition & 1 deletion flask_api/__init__.py
Original file line number Diff line number Diff line change
@@ -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
6A7C
Original file line number Diff line number Diff line change
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