Skip to content

Commit

Permalink
rfc2616 compliant linebreaks for http headers
Browse files Browse the repository at this point in the history
  • Loading branch information
hobbyquaker committed Dec 7, 2018
1 parent 44163ae commit eead532
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion addon_files/redmatic/www/getconfig.cgi
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
source ../lib/querystring.tcl
source ../lib/session.tcl

puts "Content-Type: text/plain\r\n"
puts -nonewline "Content-Type: text/plain; charset=utf-8\r\n\r\n"

if {[info exists sid] && [check_session $sid]} {
set fp [open "/usr/local/addons/redmatic/etc/settings.json" r]
Expand Down
2 changes: 1 addition & 1 deletion addon_files/redmatic/www/log.cgi
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
source ../lib/querystring.tcl
source ../lib/session.tcl

puts "Content-Type: text/plain\r\n"
puts -nonewline "Content-Type: text/plain; charset=utf-8\r\n\r\n"

if {[info exists sid] && [check_session $sid]} {

Expand Down
2 changes: 1 addition & 1 deletion addon_files/redmatic/www/service.cgi
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

source ../lib/querystring.tcl

puts "Content-Type: text/plain\r\n"
puts -nonewline "Content-Type: text/plain; charset=utf-8\r\n\r\n"

if {[info exists cmd]} {

Expand Down
2 changes: 1 addition & 1 deletion addon_files/redmatic/www/setconfig.cgi
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
source ../lib/querystring.tcl
source ../lib/session.tcl

puts "Content-Type: text/plain\r\n"
puts -nonewline "Content-Type: text/plain; charset=utf-8\r\n\r\n"

if {[info exists sid] && [check_session $sid]} {
set filename "/usr/local/addons/redmatic/etc/settings.json"
Expand Down
2 changes: 1 addition & 1 deletion addon_files/redmatic/www/settings.cgi
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ catch {
}
}

puts "Content-Type: text/html\r\n"
puts -nonewline "Content-Type: text/html; charset=utf-8\r\n\r\n"

if {[info exists sid] > 0} {
# Session prüfen
Expand Down
2 changes: 1 addition & 1 deletion addon_files/redmatic/www/update_check.cgi
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ catch {
}
}

puts "Content-Type: text/html\r\n"
puts -nonewline "Content-Type: text/html; charset=utf-8\r\n\r\n"

if { [info exists cmd ] && $cmd == "download"} {
puts "<html><head><meta http-equiv='refresh' content='0; url=$downloadURL' /></head></html>"
Expand Down

0 comments on commit eead532

Please sign in to comment.