some gemini compat improvements

This commit is contained in:
Luxferre
2024-10-06 21:13:09 +03:00
parent 6ed23ab7dd
commit 319434084b
+2 -2
View File
@@ -675,8 +675,8 @@ proc render_handler_gemini {prevurl rooturl path body textw} {
if {[llength $statusparts] > 1} {
set statusinfo [join [lrange $statusparts 1 end] " "]
}
if {($statuscode < 10) || ($statuscode > 100)} {
$textw insert end "Error $statuscode: $statusinfo\n" errormsg
if {($statuscode < 10) || ($statuscode > 99)} {
$textw insert end "Invalid status code $statuscode: $statusinfo\n" errormsg
return
}
# reset redirect counter if the code group is not 3