Title: Fixing pdu.generate() encoding by vazir · Pull Request #132 · python-smpplib/python-smpplib · GitHub
Open Graph Title: Fixing pdu.generate() encoding by vazir · Pull Request #132 · python-smpplib/python-smpplib
X Title: Fixing pdu.generate() encoding by vazir · Pull Request #132 · python-smpplib/python-smpplib
Description: pdu.generate() will lead to the following exception, so this is the proposed fix for it. File "/opt/smpp_proxy_server/smpplib/pdu.py", line 136, in generate body = self.generate_params() File "/opt/smpp_proxy_server/smpplib/command.py", line 144, in generate_params value = self._generate_string(field) File "/opt/smpp_proxy_server/smpplib/command.py", line 180, in _generate_string value = field_value + chr(0) TypeError: can't concat str to bytes
Open Graph Description: pdu.generate() will lead to the following exception, so this is the proposed fix for it. File "/opt/smpp_proxy_server/smpplib/pdu.py", line 136, in generate body = self.gene...
X Description: pdu.generate() will lead to the following exception, so this is the proposed fix for it. File "/opt/smpp_proxy_server/smpplib/pdu.py", line 136, in generate body = s...
Opengraph URL: https://github.com/python-smpplib/python-smpplib/pull/132
X: @github
Domain: patch-diff.githubusercontent.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:973cae3f-64cf-a443-8873-064e125c3ce4 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | A9BA:4DECD:398F8B1:4A79CA1:697512F9 |
| html-safe-nonce | b461b078507569178925f1ea5725239a6238a468f860cedb1fed6151a757d6c8 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBOUJBOjRERUNEOjM5OEY4QjE6NEE3OUNBMTo2OTc1MTJGOSIsInZpc2l0b3JfaWQiOiI1NzczOTczOTYyNDU2NDgxMjEiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | cd7ae85dd0553956b4fcf52c728d0f308eb0863005811004ebe692165e8ed9c6 |
| hovercard-subject-tag | pull_request:565321649 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/python-smpplib/python-smpplib/pull/132/files |
| twitter:image | https://avatars.githubusercontent.com/u/919929?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/919929?s=400&v=4 |
| og:image:alt | pdu.generate() will lead to the following exception, so this is the proposed fix for it. File "/opt/smpp_proxy_server/smpplib/pdu.py", line 136, in generate body = self.gene... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 4a4bf5f4e28041a9d2e5c107d7d20b78b4294ba261cab243b28167c16a623a1f |
| turbo-cache-control | no-preview |
| diff-view | unified |
| go-import | github.com/python-smpplib/python-smpplib git https://github.com/python-smpplib/python-smpplib.git |
| octolytics-dimension-user_id | 45378833 |
| octolytics-dimension-user_login | python-smpplib |
| octolytics-dimension-repository_id | 9441405 |
| octolytics-dimension-repository_nwo | python-smpplib/python-smpplib |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 9441405 |
| octolytics-dimension-repository_network_root_nwo | python-smpplib/python-smpplib |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 488b30e96dfd057fbbe44c6665ccbc030b729dde |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width