Skip to content

Commit

Permalink
Ignore bodies from GET and HEAD
Browse files Browse the repository at this point in the history
  • Loading branch information
mattrobenolt committed Nov 4, 2015
1 parent b994915 commit 1a7fda8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion raven/contrib/django/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ def get_data_from_request(self, request):
host = get_host(request)
uri = '%s://%s%s' % (scheme, host, request.path)

if request.method != 'GET':
if request.method not in ('GET', 'HEAD'):
try:
data = request.body
except Exception:
Expand Down

0 comments on commit 1a7fda8

Please sign in to comment.