Skip to content

Commit

Permalink
correcting input to hex using ord funtion
Browse files Browse the repository at this point in the history
  • Loading branch information
Devidas Jadhav authored and yonghong-song committed Mar 28, 2020
1 parent e323254 commit 915d6d7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/networking/http_filter/http-parse-complete.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
def toHex(s):
lst = ""
for ch in s:
hv = hex(ch).replace('0x', '')
hv = hex(ord(ch)).replace('0x', '')
if len(hv) == 1:
hv = '0' + hv
lst = lst + hv
Expand Down

0 comments on commit 915d6d7

Please sign in to comment.