Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

halt ignores headers #898

Closed
nicolasfranck opened this Issue · 2 comments

3 participants

@nicolasfranck

Performing a halt operation in Dancer ignores the headers that where
already set.

status 301;
headers( "Location" => "https://localhost/cas/login");
halt();

or more simplified:

redirect("https://localhost/cas/login",301);
halt();

the status code is not ignored.

curl -i "http://localhost:5000/login" leads to this response:

HTTP/1.0 301 Moved Permanently
Date: Fri, 22 Feb 2013 09:59:50 GMT
Server: HTTP::Server::PSGI
Content-Length: 0

Any idea?

Thanks in advance

@racke
Owner
@yanick
Owner

I think I have the fix. I'll run it by the guys before I merge to devel as I'm not sure if there was a good reason to ditch headers and everything else where we're halting. I think not, but you never know...

@yanick yanick closed this in ded046c
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.