mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-06-02 04:15:05 +02:00
bug fixed : call set_status_header for HTTP response when webservice
PwgError is called, so that http response code and related message are part of the structure response and not only in a serialized content (see how tools/piwigo_remote.pl gets the response) git-svn-id: http://piwigo.org/svn/trunk@2499 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
@@ -52,6 +52,8 @@ class PwgError
|
||||
|
||||
function PwgError($code, $codeText)
|
||||
{
|
||||
set_status_header($code, $codeText);
|
||||
|
||||
$this->_code = $code;
|
||||
$this->_codeText = $codeText;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user