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} {
|
if {[llength $statusparts] > 1} {
|
||||||
set statusinfo [join [lrange $statusparts 1 end] " "]
|
set statusinfo [join [lrange $statusparts 1 end] " "]
|
||||||
}
|
}
|
||||||
if {($statuscode < 10) || ($statuscode > 100)} {
|
if {($statuscode < 10) || ($statuscode > 99)} {
|
||||||
$textw insert end "Error $statuscode: $statusinfo\n" errormsg
|
$textw insert end "Invalid status code $statuscode: $statusinfo\n" errormsg
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
# reset redirect counter if the code group is not 3
|
# reset redirect counter if the code group is not 3
|
||||||
|
|||||||
Reference in New Issue
Block a user