some bug fixes
This commit is contained in:
parent
03e2a2127e
commit
6171357937
5 changed files with 130 additions and 62 deletions
|
|
@ -103,7 +103,7 @@ sub getHeader {
|
|||
$self->session->request->headers_out->set(Location => $self->{_http}{location});
|
||||
$self->session->request->status(301);
|
||||
} else {
|
||||
$self->session->request->content_type($self->{_http}{mimetype} || "text/html");
|
||||
$self->session->request->content_type($self->{_http}{mimetype} || "text/html") if ($self->session->request);
|
||||
if ($self->session->setting->get("preventProxyCache")) {
|
||||
$params{"-expires"} = "-1d";
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue