Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 2 additions & 4 deletions application/libraries/REST_Controller.php
Original file line number Diff line number Diff line change
Expand Up @@ -493,8 +493,7 @@ public function response($data = null, $http_code = null)
}
}

header('HTTP/1.1: ' . $http_code);
header('Status: ' . $http_code);
set_status_header($http_code);

// If zlib.output_compression is enabled it will compress the output,
// but it will not modify the content-length header to compensate for
Expand Down Expand Up @@ -1409,8 +1408,7 @@ protected function _prepare_digest_auth()

if ($digest['response'] != $valid_response)
{
header('HTTP/1.0 401 Unauthorized');
header('HTTP/1.1 401 Unauthorized');
set_status_header(401);
exit;
}
}
Expand Down