[asterisk-commits] rizzo: trunk r45161 - /trunk/main/http.c

asterisk-commits at lists.digium.com asterisk-commits at lists.digium.com
Sun Oct 15 23:55:15 MST 2006


Author: rizzo
Date: Mon Oct 16 01:55:14 2006
New Revision: 45161

URL: http://svn.digium.com/view/asterisk?rev=45161&view=rev
Log:
fix indentation of a large block after changes in previous commit
(basically whitespace only).


Modified:
    trunk/main/http.c

Modified: trunk/main/http.c
URL: http://svn.digium.com/view/asterisk/trunk/main/http.c?rev=45161&r1=45160&r2=45161&view=diff
==============================================================================
--- trunk/main/http.c (original)
+++ trunk/main/http.c Mon Oct 16 01:55:14 2006
@@ -385,51 +385,51 @@
 
 				/* XXX fix indentation */
 
-				/* TODO - The cookie parsing code below seems to work   
-				   in IE6 and FireFox 1.5.  However, it is not entirely 
-				   correct, and therefore may not work in all           
-				   circumstances.		                        
-				      For more details see RFC 2109 and RFC 2965        */
+			/* TODO - The cookie parsing code below seems to work   
+			   in IE6 and FireFox 1.5.  However, it is not entirely 
+			   correct, and therefore may not work in all           
+			   circumstances.		                        
+			      For more details see RFC 2109 and RFC 2965        */
+		
+			/* FireFox cookie strings look like:                    
+			     Cookie: mansession_id="********"                   
+			   InternetExplorer's look like:                        
+			     Cookie: $Version="1"; mansession_id="********"     */
 			
-				/* FireFox cookie strings look like:                    
-				     Cookie: mansession_id="********"                   
-				   InternetExplorer's look like:                        
-				     Cookie: $Version="1"; mansession_id="********"     */
+			/* If we got a FireFox cookie string, the name's right  
+			    after "Cookie: "                                    */
+			vname = cookie + 8;
 				
-				/* If we got a FireFox cookie string, the name's right  
-				    after "Cookie: "                                    */
-                                vname = cookie + 8;
+			/* If we got an IE cookie string, we need to skip to    
+			    past the version to get to the name                 */
+			if (*vname == '$') {
+				vname = strchr(vname, ';');
+				if (vname) { 
+					vname++;
+					if (*vname == ' ')
+						vname++;
+				}
+			}
 				
-				/* If we got an IE cookie string, we need to skip to    
-				    past the version to get to the name                 */
-				if (*vname == '$') {
-					vname = strchr(vname, ';');
-					if (vname) { 
-						vname++;
-						if (*vname == ' ')
-							vname++;
+			if (vname) {
+				vval = strchr(vname, '=');
+				if (vval) {
+					/* Ditch the = and the quotes */
+					*vval++ = '\0';
+					if (*vval)
+						vval++;
+					if (strlen(vval))
+						vval[strlen(vval) - 1] = '\0';
+					var = ast_variable_new(vname, vval);
+					if (var) {
+						if (prev)
+							prev->next = var;
+						else
+							vars = var;
+						prev = var;
 					}
 				}
-				
-				if (vname) {
-					vval = strchr(vname, '=');
-					if (vval) {
-						/* Ditch the = and the quotes */
-						*vval++ = '\0';
-						if (*vval)
-							vval++;
-						if (strlen(vval))
-							vval[strlen(vval) - 1] = '\0';
-						var = ast_variable_new(vname, vval);
-						if (var) {
-							if (prev)
-								prev->next = var;
-							else
-								vars = var;
-							prev = var;
-						}
-					}
-				}
+			}
 		}
 
 		if (*uri) {



More information about the asterisk-commits mailing list