Skip to content

Commit

Permalink
Changed bytes to str
Browse files Browse the repository at this point in the history
  • Loading branch information
jeroennijhof committed Feb 7, 2013
1 parent 01472aa commit d4df973
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/send_request
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ def send_url(s, protocol, url):
url_req += chr(len1)
url_req += chr(len2)
url_req += '\x00\x00'
url_req += bytes(url)
url_req += str(url)
url_req += '\x00'
s.sendall(url_req)
data = s.recv(1024)
Expand All @@ -59,7 +59,7 @@ def send_url(s, protocol, url):
len2 = len(url) % 256
url_req += chr(len1)
url_req += chr(len2)
url_req += bytes(url)
url_req += str(url)
s.sendall(url_req)
data = s.recv(1024)
print 'Received', repr(data)
Expand Down

0 comments on commit d4df973

Please sign in to comment.