Skip to content
This repository has been archived by the owner on Oct 23, 2023. It is now read-only.

Commit

Permalink
Recognize Content Type application/vnd.api+json as JSON type
Browse files Browse the repository at this point in the history
Sentry should recognize API JSON requests as JSON type not as Form. If they are recognized as Form the body payload appears empty in Sentry UI.
  • Loading branch information
Iva Kaneva committed Mar 19, 2018
1 parent ce252ca commit 6cb3c79
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion raven/contrib/flask.py
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ def get_http_info(self, request):
return self.get_http_info_with_retriever(request, retriever)

def is_json_type(self, content_type):
return content_type == 'application/json'
return content_type == 'application/json' or content_type.endswith('+json')

def get_form_data(self, request):
return request.form
Expand Down

0 comments on commit 6cb3c79

Please sign in to comment.