mirror of
https://github.com/PirateBox-Dev/PirateBoxScripts_Webserver.git
synced 2026-12-05 00:38:42 +00:00
Generate the HTTP Resonse with python for 1.0.x PirateBox too
Will avoid Captive Portal message from Android. Especially some devices tend to leave the PirateBox network, because they don't receive a 204 from their specific URL. Closes #115
This commit is contained in:
1 parent
8c099f2446
commit
c19b591c6a
2 files changed
+7
No files matched your search
@@ -71,6 +71,10 @@ $HTTP["url"] =~ "^/cgi-bin/" {
|
||||
cgi.assign = ( ".py" => "/usr/bin/python" )
|
||||
}
|
||||
|
||||
$HTTP["url"] =~ "^generate_204" {
|
||||
cgi.assign = ( "" => "/usr/bin/python" )
|
||||
}
|
||||
|
||||
## Warning this represents a security risk, as it allow to execute any file
|
||||
## with a .pl/.py even outside of /usr/lib/cgi-bin.
|
||||
#
|
||||
|
||||
@@ -0,0 +1,3 @@
|
||||
#!/usr/bin/python
|
||||
|
||||
print ("HTTP/1.0 204 No Content")
|
||||
Reference in new issue
Block a user