Skip to content

Commit

Permalink
feat(Sinature): content type added to the init
Browse files Browse the repository at this point in the history
  • Loading branch information
650elx committed Jan 18, 2024
1 parent d52e838 commit 3c2a9cc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion sinch/core/signature.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,12 @@ def __init__(
http_method,
request_data,
request_uri,
content_type=None,
signature_timestamp=None
):
self.sinch = sinch
self.http_method = http_method
self.content_type = 'application/json; charset=UTF-8'
self.content_type = content_type or 'application/json; charset=UTF-8'
self.request_data = request_data
self.signature_timestamp = signature_timestamp or datetime.now(timezone.utc).isoformat()
self.request_uri = request_uri
Expand Down

0 comments on commit 3c2a9cc

Please sign in to comment.