Skip to content

Commit

Permalink
fix update-check.cgi to set a proper content-type to prevent browsers
Browse files Browse the repository at this point in the history
from downloading the content. This refs #480.
  • Loading branch information
jens-maus committed Nov 25, 2018
1 parent a9eb8ac commit 90198e5
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ if { [info exists cmd ] && $cmd == "download"} {
puts -nonewline "Content-Type: text/html; charset=utf-8\r\n\r\n"
puts -nonewline "<html><head><meta http-equiv='refresh' content='0; url=$downloadURL' /></head><body></body></html>"
} else {
puts -nonewline "Content-Type: text/plain; charset=utf-8\r\n\r\n"
catch {
set newversion [ exec /usr/bin/wget -qO- --no-check-certificate $checkURL ]
}
Expand Down

0 comments on commit 90198e5

Please sign in to comment.