Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit c69bd11

Browse files
committed
Fixed unicode encoding problem for multipart transport.
1 parent b395a17 commit c69bd11

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tornadio/polling.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,7 @@ def on_connection_close(self):
235235

236236
def data_available(self, raw_data):
237237
self.preflight()
238-
self.write("Content-Type: text/plain; charset=us-ascii\n\n")
238+
self.write("Content-Type: text/plain; charset=UTF-8\n\n")
239239
self.write(raw_data + '\n')
240240
self.write('--socketio\n')
241241
self.flush()

0 commit comments

Comments
 (0)