Skip to content

Commit

Permalink
Add charset to get_enhet()'s Accept header
Browse files Browse the repository at this point in the history
  • Loading branch information
jodal committed Dec 11, 2023
1 parent 5ca3714 commit 029dfd4
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/brreg/enhetsregisteret/_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,10 @@ def get_enhet(self, organisasjonsnummer: str) -> Optional[Enhet]:
res = self._client.get(
f"/enheter/{organisasjonsnummer}",
headers={
"accept": "application/vnd.brreg.enhetsregisteret.enhet.v2+json"
"accept": (
"application/vnd.brreg.enhetsregisteret.enhet.v2+json;"
"charset=UTF-8"
)
},
)
if res.status_code in (404, 410):
Expand Down

0 comments on commit 029dfd4

Please sign in to comment.