Skip to content

Commit

Permalink
werkzeug.wrappers.Request is a subclass of .BaseRequest and we only n…
Browse files Browse the repository at this point in the history
…eed the methods defined on BaseRequest so make werkzeug request handling more general (#271)
  • Loading branch information
rokob authored Jun 15, 2018
1 parent 120d51e commit b015f4a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion rollbar/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@
del ImproperlyConfigured

try:
from werkzeug.wrappers import Request as WerkzeugRequest
from werkzeug.wrappers import BaseRequest as WerkzeugRequest
except (ImportError, SyntaxError):
WerkzeugRequest = None

Expand Down Expand Up @@ -1036,6 +1036,7 @@ def _get_actual_request(request):
return actual_request
return request


def _build_request_data(request):
"""
Returns a dictionary containing data from the request.
Expand Down

0 comments on commit b015f4a

Please sign in to comment.