Selaa lähdekoodia

Fix CURL

microtasks
tech234a 3 vuotta sitten
vanhempi
commit
c2187c0d19
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  1. +1
    -1
      worker.py

+ 1
- 1
worker.py Näytä tiedosto

@@ -297,7 +297,7 @@ while not gkiller.kill_now:
elif targetloc.startswith("http"): elif targetloc.startswith("http"):
for filzip in listdir("directory"): for filzip in listdir("directory"):
if filzip.endswith(".zip"): if filzip.endswith(".zip"):
system("curl --data-binary @directory/"+filzip+" "+targetloc)
system("curl -F "+filzip+"=@directory/"+filzip+" "+targetloc)


# Report the batch as complete # Report the batch as complete
for itemb in batchcontent: for itemb in batchcontent:


Ladataan…
Peruuta
Tallenna