Skip to content

Commit

Permalink
Add content-type = application/json header in raise response of `__…
Browse files Browse the repository at this point in the history
…call__`
  • Loading branch information
AliRn76 committed Jan 24, 2024
1 parent aea54dc commit 8935903
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
3 changes: 3 additions & 0 deletions docs/docs/release_notes.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
### 3.8.2
- Add `content-type = application/json` header in raise response of `__call__`

### 3.8.1
- Fix an issue in `_create_pantherdb_session()`

Expand Down
2 changes: 1 addition & 1 deletion panther/__init__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from panther.main import Panther # noqa: F401

__version__ = '3.8.1'
__version__ = '3.8.2'


def version():
Expand Down
1 change: 1 addition & 0 deletions panther/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -300,6 +300,7 @@ def _handle_exceptions(cls, e: APIException, /) -> Response:
async def _raise(self, send, *, status_code: int):
await http_response(
send,
headers={'content-type': 'application/json'},
status_code=status_code,
monitoring=self.monitoring,
exception=True,
Expand Down

0 comments on commit 8935903

Please sign in to comment.