From 35ebafa72976a676a541d57ffb751ea9f6d0fb52 Mon Sep 17 00:00:00 2001 From: Jan Schneider Date: Mon, 14 Sep 2009 12:45:15 +0200 Subject: [PATCH] Until we have a working HTTP client that doesn't consider 201 as an error response, work around it. --- framework/Release/lib/Horde/Release.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/framework/Release/lib/Horde/Release.php b/framework/Release/lib/Horde/Release.php index 44c7ae37f..f4e24f6d3 100644 --- a/framework/Release/lib/Horde/Release.php +++ b/framework/Release/lib/Horde/Release.php @@ -685,7 +685,9 @@ class Horde_Release Horde_Serialize::serialize($fm_params, Horde_Serialize::JSON), array('Content-Type' => 'application/json')); } catch (Horde_Http_Client_Exception $e) { - throw new Horde_Exception($e); + if (strpos($e->getMessage(), '201 Created') === false) { + throw new Horde_Exception($e); + } } // 201 Created -- 2.11.0