[Fusionforge-commits] r12949 - trunk/src/plugins/oauthprovider/www

Olivier Berger olberger at fusionforge.org
Tue Mar 29 15:54:41 CEST 2011


Author: olberger
Date: 2011-03-29 15:54:41 +0200 (Tue, 29 Mar 2011)
New Revision: 12949

Modified:
   trunk/src/plugins/oauthprovider/www/access_token.php
Log:
Improve a bit by adding return code as explicit parameter

Modified: trunk/src/plugins/oauthprovider/www/access_token.php
===================================================================
--- trunk/src/plugins/oauthprovider/www/access_token.php	2011-03-29 13:54:28 UTC (rev 12948)
+++ trunk/src/plugins/oauthprovider/www/access_token.php	2011-03-29 13:54:41 UTC (rev 12949)
@@ -52,10 +52,10 @@
 	if ($code) {
 		switch($code) {
 			case 401:
-				header('HTTP/1.1 401 Unauthorized');
+				header('HTTP/1.1 401 Unauthorized', 401);
 				break;
 			case 400:
-				header('HTTP/1.1 400 Bad Request');
+				header('HTTP/1.1 400 Bad Request', 400);
 				break;
 			default:
 				break;




More information about the Fusionforge-commits mailing list