1
0
mirror of https://github.com/lammertb/libhttp.git synced 2025-08-22 08:12:46 +03:00

Added mg_send_file() to python binding

This commit is contained in:
valenok
2011-06-19 18:03:38 +01:00
parent 29a38875ff
commit 81a5e3f342
2 changed files with 6 additions and 0 deletions

View File

@@ -39,6 +39,9 @@ def EventHandler(event, conn, info):
'<input type="submit"/>'
'</form>')
return True
elif event == mongoose.NEW_REQUEST and info.uri == '/secret':
conn.send_file('/etc/passwd')
return True
else:
return False