mirror of
https://github.com/cesanta/mongoose.git
synced 2026-11-22 20:01:49 +00:00
Python bindings synced
This commit is contained in:
1 parent
586574e176
commit
72c861bb83
2 files changed
+18
-8
No files matched your search
@@ -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