Skip to content

Commit

Permalink
fixed update-check.cgi script to output Content-Type: header as well.
Browse files Browse the repository at this point in the history
  • Loading branch information
jens-maus committed Nov 21, 2018
1 parent 3aa8b85 commit 6d43255
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.18
1.19
3 changes: 2 additions & 1 deletion xmlapi/update-check.cgi
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@ 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 {
catch {
set newversion [ exec /usr/bin/wget -qO- --no-check-certificate $checkURL ]
Expand Down

0 comments on commit 6d43255

Please sign in to comment.