Skip to content

Commit 7c6e0ae

Browse files
fixed the signature validation when the different language is there
1 parent 045f406 commit 7c6e0ae

4 files changed

Lines changed: 6 additions & 3 deletions

File tree

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
# Change Log
2+
## [4.59.1](https://github.com/plivo/plivo-python/tree/v4.59.1) (2025-05-28)
3+
- Fixed signature validation.
4+
25
## [4.59.0](https://github.com/plivo/plivo-python/tree/v4.59.0) (2025-04-30)
36
**Feature - New Param added for Start Recording API.**
47
- Support `record_channel_type` in Start Recording API and `recordChannelType` in Record XML.

plivo/utils/signature_v3.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,6 @@ def validate_v3_signature(method, uri, nonce, auth_token, v3_signature, params=N
115115
auth_token = bytes(auth_token.encode('utf-8'))
116116
nonce = bytes(nonce.encode('utf-8'))
117117
v3_signature = bytes(v3_signature.encode('utf-8'))
118-
base_url = construct_get_url(uri, params) if method == 'GET' else construct_post_url(uri, params)
118+
base_url = construct_get_url(uri, params).decode('utf-8') if method == 'GET' else construct_post_url(uri, params).decode('utf-8')
119119
signature = get_signature_v3(auth_token, base_url, nonce)
120120
return signature in v3_signature.split(b',')

plivo/version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
# -*- coding: utf-8 -*-
2-
__version__ = '4.59.0'
2+
__version__ = '4.59.1'

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
setup(
1212
name='plivo',
13-
version='4.59.0',
13+
version='4.59.1',
1414
description='A Python SDK to make voice calls & send SMS using Plivo and to generate Plivo XML',
1515
long_description=long_description,
1616
url='https://github.com/plivo/plivo-python',

0 commit comments

Comments
 (0)