diff -r e24793fae424 -r 1b734faab67a rest.py --- a/rest.py Tue Aug 11 19:12:30 2015 +0300 +++ b/rest.py Sun Aug 16 10:59:22 2015 +0300 @@ -192,7 +192,7 @@ self.httpdata += data.replace ('\r', '') def finish (self): - handle_rest_http (self.httpdata.split ('\n'), self.address[0]) + handle_rest_http (self.httpdata.splitlines(), self.address[0]) self.close() def handle_write (self): @@ -202,7 +202,7 @@ def handle_error (self): raise -class RESTServer (asyncore.dispatcher): +class RestServer (asyncore.dispatcher): def __init__ (self): global g_portnumber