The 301 (http://en.wikipedia.org/wiki/HTTP_301) is the permanent
redirection so, in order to keep the 'permanent' semantics consistent,
the default must be 1

 -- Massimo

On 12/15/2014 06:51 PM, Damon Courtney wrote:

> proc ::rivet::redirect {url {permanent 0}} {
>     no_body ; ## don’t output anything on a redirect
>     headers set Location $url
>     headers numeric [expr {$permanent ? "301" : "302"}]
>     abort_page ; ## stop any further processing
> }
> 
> Damon
> 
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to