mirror of
https://github.com/cesanta/mongoose.git
synced 2026-10-03 23:03:13 +07:00
Python bindings synced
This commit is contained in:
@@ -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')
|
||||
|
||||
Reference in New Issue
Block a user