Browse Source

Merge pull request #2660 from dpeek/fix-http

Missing semicolon from haxe.Http, and match local code style
Simon Krajewski 11 years ago
parent
commit
ba463d75e9
1 changed files with 3 additions and 5 deletions
  1. 3 5
      std/haxe/Http.hx

+ 3 - 5
std/haxe/Http.hx

@@ -207,15 +207,13 @@ class Http {
 				s = null;
 			if( s != null )
 				me.onStatus(s);
-			if( s != null && s >= 200 && s < 400 )
-			{
+			if( s != null && s >= 200 && s < 400 ) {
 				me.req = null;
 				me.onData(me.responseData = r.responseText);
 			}
-			else if ( s == null )
-			{
+			else if ( s == null ) {
 				me.req = null;
-				me.onError("Failed to connect or resolve host")
+				me.onError("Failed to connect or resolve host");
 			}
 			else switch( s ) {
 			case 12029: