Python bindings synced

This commit is contained in:
Sergey Lyubka
2012-09-21 09:05:12 +01:00
parent 586574e176
commit 72c861bb83
2 changed files with 18 additions and 8 deletions
+1 -1
View File
@@ -13,7 +13,7 @@ def EventHandler(event, conn):
if event == mongoose.HTTP_ERROR:
conn.printf('%s', 'HTTP/1.0 200 OK\r\n')
conn.printf('%s', 'Content-Type: text/plain\r\n\r\n')
conn.printf('HTTP error: %d\n', info.status_code)
conn.printf('HTTP error: %d\n', conn.reply_status_code)
return True
elif event == mongoose.NEW_REQUEST and info.uri == '/show':
conn.printf('%s', 'HTTP/1.0 200 OK\r\n')