Skip to content

Commit

Permalink
Merge pull request #8 from linkml/streaming-curl
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinschaper authored Jun 22, 2022
2 parents 1d82fa2 + ed0e980 commit e930b83
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion linkml_solr/utils/solr_bulkload.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ def bulkload_file(f,
ct = 'application/json'
else:
raise Exception(f'Unknown format {format}')
command = ['curl', url, '--data-binary', f'@{f}', '-H', f'Content-type:{ct}']
command = ['curl', url, '-T', f'{f}', '-X', 'POST', '-H', f'Content-type:{ct}']
print(command)
subprocess.run(command)

2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "linkml-solr"
version = "0.1.2"
version = "0.1.3"
description = ""
authors = ["Chris Mungall <[email protected]>"]

Expand Down

0 comments on commit e930b83

Please sign in to comment.