some gemini compat improvements
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user