160 |
warn "## html ",length($html)," bytes"; |
warn "## html ",length($html)," bytes"; |
161 |
$req->print( $html ); |
$req->print( $html ); |
162 |
} else { |
} else { |
163 |
$req->print( qq|<pre class="frey-error">no output from $f</pre>\r\n\r\n| ); |
confess "no output from $f"; |
164 |
} |
} |
165 |
} else { |
} else { |
166 |
warn "# can't call request on nothing!"; |
confess "# can't call request on nothing!"; |
167 |
} |
} |
168 |
|
|
169 |
}; |
}; |
186 |
} |
} |
187 |
|
|
188 |
if ( $req->conn ) { |
if ( $req->conn ) { |
189 |
|
$req->print( "\r\n" ); # flush |
190 |
$req->conn->close; |
$req->conn->close; |
191 |
warn "## close connection: $@"; |
warn "## close connection: $@"; |
192 |
} |
} |