Skip to content

Commit

Permalink
fix http_post under py3
Browse files Browse the repository at this point in the history
  • Loading branch information
breakwa11 committed Jun 16, 2017
1 parent 7b62f9f commit 0e045a3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion shadowsocks/obfsplugin/http_simple.py
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,7 @@ def client_encode(self, buf):
http_head += b"User-Agent: " + random.choice(self.user_agent) + b"\r\n"
http_head += b"Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8\r\nAccept-Language: en-US,en;q=0.8\r\nAccept-Encoding: gzip, deflate\r\n"
http_head += b"Content-Type: multipart/form-data; boundary=" + self.boundary() + b"\r\nDNT: 1\r\n"
http_head += "Connection: keep-alive\r\n\r\n"
http_head += b"Connection: keep-alive\r\n\r\n"
self.has_sent_header = True
return http_head + buf

Expand Down

0 comments on commit 0e045a3

Please sign in to comment.