Issue 91: Create feature to disable a repo

This commit is contained in:
Nathan Adams
2015-02-09 23:24:51 -06:00
parent feb001ed8e
commit 4febdda65f
9 changed files with 85 additions and 5 deletions

View File

@@ -42,6 +42,8 @@ class Pluf_Middleware_Stats
*/
function process_response($request, $response)
{
if (isset($response) && !isset($response->status_code))
return $response;
if (!in_array($response->status_code,
array(200, 201, 202, 203, 204, 205, 206, 404, 501))) {
return $response;