Skip to content

Commit

Permalink
stream upload post
Browse files Browse the repository at this point in the history
  • Loading branch information
howardchung committed Jan 8, 2024
1 parent ead30cb commit c9f00fd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/opendota/Main.java
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ public void handle(HttpExchange t) throws IOException {
try {
Map<String, String> query = splitQuery(t.getRequestURI());
URL replayUrl = new URL(query.get("replay_url"));
String cmd = String.format("curl --max-time 120 --fail -L %s | %s | curl -X POST --data-binary @- localhost:5600 | node processors/createParsedDataBlob.mjs",
String cmd = String.format("curl --max-time 120 --fail -L %s | %s | curl -X POST -T - localhost:5600 | node processors/createParsedDataBlob.mjs",
replayUrl,
replayUrl.toString().endsWith(".bz2") ? "bunzip2" : "cat"
);
Expand Down

0 comments on commit c9f00fd

Please sign in to comment.