Skip to content

Commit

Permalink
fixed update-check.cgi
Browse files Browse the repository at this point in the history
  • Loading branch information
jp112sdl committed Dec 26, 2018
1 parent 63f788b commit 3774dfd
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/addon/update-check.cgi
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,10 @@ catch {
}

if { [info exists cmd ] && $cmd == "download"} {
puts "<html><head><meta http-equiv='refresh' content='0; url=$downloadURL' /></head></html>"
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 3774dfd

Please sign in to comment.