Skip to content

Commit 6d43255

Browse files
committed
fixed update-check.cgi script to output Content-Type: header as well.
1 parent 3aa8b85 commit 6d43255

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.18
1+
1.19

xmlapi/update-check.cgi

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@ catch {
1414
}
1515

1616
if { [info exists cmd ] && $cmd == "download"} {
17-
puts "<html><head><meta http-equiv='refresh' content='0; url=$downloadURL' /></head></html>"
17+
puts -nonewline "Content-Type: text/html; charset=utf-8\r\n\r\n"
18+
puts -nonewline "<html><head><meta http-equiv='refresh' content='0; url=$downloadURL' /></head><body></body></html>"
1819
} else {
1920
catch {
2021
set newversion [ exec /usr/bin/wget -qO- --no-check-certificate $checkURL ]

0 commit comments

Comments
 (0)