Change getMimeType and setMimeType to response->content_type.
This commit is contained in:
parent
e5adc07a05
commit
fd8f03a186
52 changed files with 138 additions and 175 deletions
|
|
@ -231,7 +231,7 @@ Get the data asynchronously.
|
|||
sub www_ajaxGetData {
|
||||
my $self = shift;
|
||||
|
||||
$self->session->http->setMimeType("application/json");
|
||||
$self->session->response->content_type("application/json");
|
||||
return $self->getDataJson;
|
||||
}
|
||||
|
||||
|
|
@ -253,7 +253,7 @@ sub www_ajaxUpdateData {
|
|||
|
||||
$data ||= $self->data;
|
||||
|
||||
$self->session->http->setMimeType("application/json");
|
||||
$self->session->response->content_type("application/json");
|
||||
return $data;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue