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

Recognize Content Type application/vnd.api+json as JSON type #1211

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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