Remove the external oauth-get-signing. Only XMLConnection should be fetching things...
[potlatch2.git] / net / systemeD / potlatch2 / utils / Importer.as
index 6f4f474a78cd208ec5fcbc79debd2d8242546276..056457e3b40a4922fed11e398721d8e641e467e3 100644 (file)
@@ -2,6 +2,8 @@ package net.systemeD.potlatch2.utils {
 
        import net.systemeD.halcyon.MapPaint;
        import net.systemeD.halcyon.ExtendedURLLoader;
+       import net.systemeD.halcyon.DebugURLRequest;
+    import net.systemeD.halcyon.connection.*;
        import flash.net.URLLoader;
        import flash.display.LoaderInfo;
        import flash.events.*;
@@ -32,8 +34,8 @@ package net.systemeD.potlatch2.utils {
 
                        var sp:uint=0;
                        for each (var fn:String in filenames) {
-                               Globals.vars.root.addDebug("requesting file "+fn); 
-
+                               Globals.vars.root.addDebug("requesting file "+fn);
+                               var request:DebugURLRequest = new DebugURLRequest(fn);
                                var loader:ExtendedURLLoader = new ExtendedURLLoader();
                                loader.info['file']=sp;
                                loader.dataFormat=URLLoaderDataFormat.BINARY;
@@ -42,7 +44,7 @@ package net.systemeD.potlatch2.utils {
                                        loader.addEventListener(SecurityErrorEvent.SECURITY_ERROR,      securityErrorHandler);
                                        loader.addEventListener(IOErrorEvent.IO_ERROR,                          ioErrorHandler);
                                }
-                               loader.load(new URLRequest(fn));
+                               loader.load(request.request);
                                sp++;
                        }
                }