瀏覽代碼

Fixed curl not working with new sendfile system at mx2.com

Mark Sibly 8 年之前
父節點
當前提交
a0a43cd10c
共有 1 個文件被更改,包括 3 次插入3 次删除
  1. 3 3
      src/ted2/modulemanager.monkey2

+ 3 - 3
src/ted2/modulemanager.monkey2

@@ -202,10 +202,10 @@ Class ModuleManager Extends Dialog
 			Local dst:=downloadDir+zip
 
 #if __HOSTOS__="macos"
-			Local cmd:="curl -o ~q"+dst+"~q ~q"+src+"~q"
-#else
+			Local cmd:="curl -o ~q"+dst+"~q -data-binary ~q"+src+"~q"
+#Else
 			Local cmd:="wget -O ~q"+dst+"~q ~q"+src+"~q"
-#endif
+#Endif
 			_progress.Text="Downloading "+zip+"..."
 			
 			If Not _console.Run( cmd ) Return False