 					promise.setError(Weave.lang("Local file missing: {0}", urlRequest.url.substr(LOCAL_FILE_URL_SCHEME.length)));
 				promise = promise.then(function(byteArray:/*Uint8*/Array):Object {
 					return new WeavePromise(relevantContext, function(resolve:Function, reject:Function):* {
-						switch (urlRequest.responseType) {
+						switch (responseType) {
 							default:
 							case ResponseType.TEXT:
 								return resolve(byteArrayToString(byteArray));

	import weavejs.api.net.IURLRequestUtils;
	import weavejs.util.Dictionary2D;
	import weavejs.util.JS;
	import weavejs.util.StandardLib;
	import weavejs.util.WeavePromise;

	public class URLRequestUtils implements IURLRequestUtils

		
		public function request(relevantContext:Object, urlRequest:URLRequest):WeavePromise
		{
			var responseType:String = urlRequest.responseType || ResponseType.UINT8ARRAY;
			
			if (urlRequest.url.indexOf(LOCAL_FILE_URL_SCHEME) == 0)
			{
				var weaveRoot:ILinkableHashMap = Weave.getRoot(relevantContext as ILinkableObject);
