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:
Matthias Strubel committed 2015-08-04 20:34:53 +02:00
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.
#
+3
View File
@@ -0,0 +1,3 @@
#!/usr/bin/python
print ("HTTP/1.0 204 No Content")