1
0
Fork 0
mirror of https://github.com/iiab/iiab.git synced 2025-02-13 11:42:08 +00:00

home_selected needs content-length, comma in wrong place

This commit is contained in:
George Hunt 2019-12-23 21:41:21 +00:00
parent baba718a2a
commit 25ee1b7047

View file

@ -208,7 +208,7 @@ def android_splash(environ, start_response):
"FQDN": fully_qualified_domain_name + '{{ captiveportal_splash_page }}', \ "FQDN": fully_qualified_domain_name + '{{ captiveportal_splash_page }}', \
'doc_root':get_iiab_env("WWWROOT") } 'doc_root':get_iiab_env("WWWROOT") }
es_txt={ 'message':"Haga clic en el botón para ir a la página de inicio de IIAB",\ es_txt={ 'message':"Haga clic en el botón para ir a la página de inicio de IIAB",\
"FQDN": fully_qualified_domain_name, + '{{ captiveportal_splash_page }}' \ "FQDN": fully_qualified_domain_name + '{{ captiveportal_splash_page }}', \
'btn1':"IIAB",'doc_root':get_iiab_env("WWWROOT")} 'btn1':"IIAB",'doc_root':get_iiab_env("WWWROOT")}
txt = en_txt txt = en_txt
if lang == "en": if lang == "en":
@ -453,9 +453,11 @@ def application (environ, start_response):
set_204after(ip,PORTAL_TO) set_204after(ip,PORTAL_TO)
set_lasttimestamp(ip) set_lasttimestamp(ip)
status = '200 OK' status = '200 OK'
headers = [('Content-type', 'text/html')] response_body = b''
start_response(status, headers) response_headers = [('Content-type','text/html'),
return [b""] ('Content-Length',str(len(response_body)))]
start_response(status, response_headers)
return [response_body]
#### parse OS platform based upon URL ################## #### parse OS platform based upon URL ##################
# mac # mac