Browse Source

Changed 'text/plain' -> 'application/json' in JSONLoader.js (it solved some issues with large files loading)

apendua 13 years ago
parent
commit
bda538b237
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/loaders/JSONLoader.js

+ 2 - 2
src/loaders/JSONLoader.js

@@ -80,8 +80,8 @@ THREE.JSONLoader.prototype.loadAjaxJSON = function ( context, url, callback, tex
 	};
 
 	xhr.open( "GET", url, true );
-	if ( xhr.overrideMimeType ) xhr.overrideMimeType( "text/plain; charset=x-user-defined" );
-	xhr.setRequestHeader( "Content-Type", "text/plain" );
+	if ( xhr.overrideMimeType ) xhr.overrideMimeType( "application/json; charset=x-user-defined" );
+	xhr.setRequestHeader( "Content-Type", "application/json" );
 	xhr.send( null );
 
 };