Skip to content
This repository has been archived by the owner on May 21, 2024. It is now read-only.

Commit

Permalink
webui: create a RFC-2616 conformant HTTP header
Browse files Browse the repository at this point in the history
On upgrade the (non-Firefox) browser may return "The CGI process did not produce any response".
This change should fix this.
  • Loading branch information
mwarning committed Feb 14, 2015
1 parent b4b3117 commit 1530105
Show file tree
Hide file tree
Showing 7 changed files with 10 additions and 14 deletions.
3 changes: 1 addition & 2 deletions files/www/freifunk/cgi-bin/status
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
#!/usr/bin/haserl
content-type: text/html

<% echo -en "content-type: text/html\r\n\r\n" %>
<!DOCTYPE html>
<html lang="de"><head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
Expand Down
3 changes: 1 addition & 2 deletions files/www/lan/cgi-bin/home
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
#!/usr/bin/haserl
content-type: text/plain

<%
echo -en "content-type: text/plain\r\n\r\n"

addr() {
local addr="$(ip -$1 address show dev $2 2> /dev/null | tr '/' ' '| awk '/inet/{ printf("%s ", $2); }')"
Expand Down
3 changes: 1 addition & 2 deletions files/www/lan/cgi-bin/misc
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
#!/usr/bin/haserl
content-type: text/plain

<%
echo -en "content-type: text/plain\r\n\r\n"

case $GET_func in
reboot)
Expand Down
4 changes: 2 additions & 2 deletions files/www/lan/cgi-bin/network
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/usr/bin/haserl
content-type: text/plain

<%
echo -en "content-type: text/plain\r\n\r\n"

. /lib/functions.sh

case "$GET_func" in
Expand Down
4 changes: 2 additions & 2 deletions files/www/lan/cgi-bin/password
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/usr/bin/haserl
content-type: text/plain

<%
echo -en "content-type: text/plain\r\n\r\n"

pass1="$GET_pass1"
pass2="$GET_pass2"

Expand Down
4 changes: 2 additions & 2 deletions files/www/lan/cgi-bin/settings
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/usr/bin/haserl
content-type: text/plain

<%
echo -en "content-type: text/plain\r\n\r\n"

. /lib/functions.sh

case "$GET_func" in
Expand Down
3 changes: 1 addition & 2 deletions files/www/lan/cgi-bin/upgrade
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
#!/usr/bin/haserl --upload-dir=/tmp --upload-limit=12000
content-type: text/plain

<%
echo -en "content-type: text/plain\r\n\r\n"

case "${GET_func:-$POST_func}" in
apply_firmware)
Expand Down

0 comments on commit 1530105

Please sign in to comment.