Browse Source

Remove already defined method

pull/1984/head
Markus Unterwaditzer 8 years ago
parent
commit
5c4fa7e91c
  1. 7
      flask/wrappers.py

7
flask/wrappers.py

@ -208,10 +208,3 @@ class Response(ResponseBase, JSONMixin):
set :attr:`~flask.Flask.response_class` to your subclass.
"""
default_mimetype = 'text/html'
def _get_data_for_json(self, cache):
getter = getattr(self, 'get_data', None)
if getter is not None:
# Ignore the cache flag since response doesn't support it
return getter()
return self.data

Loading…
Cancel
Save