Skip to content

Commit 192a4eb

Browse files
authored
Merge pull request python-smpplib#184 from fpalamour/master
Fixed split message detection
2 parents 355713a + 91debbe commit 192a4eb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

smpplib/gsm.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ def make_parts(text, encoding=consts.SMPP_ENCODING_DEFAULT, use_udhi=True):
2020
encode, split_length, part_size = ENCODINGS[encoding]
2121
encoded_text = encode(text)
2222

23-
if len(text) > split_length:
23+
if len(encoded_text) > split_length:
2424
if use_udhi:
2525
# Split the text into well-formed parts.
2626
esm_class = consts.SMPP_GSMFEAT_UDHI

0 commit comments

Comments
 (0)