Changing API: callback doesnt get mg_request_info pointer anymore, but it is possible to get it using mg_get_request_info()

This commit is contained in:
Sergey Lyubka
2012-08-03 11:15:38 +01:00
parent e8f3132aa8
commit 0e0091e1c0
6 changed files with 24 additions and 17 deletions
+2 -1
View File
@@ -8,7 +8,8 @@ import mongoose
import sys
# Handle /show and /form URIs.
def EventHandler(event, conn, info):
def EventHandler(event, conn):
info = conn.info
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')