mirror of
https://github.com/ISEAL-Community/iseal-core.git
synced 2024-11-21 22:35:01 +01:00
util/create-schema-dspace.py: fix error in POST
The missing "headers=headers" was causing an HTTP 415 that took me over an hour to fix. Sigh.
This commit is contained in:
parent
0fca6bbc90
commit
b0ef411f62
@ -98,7 +98,9 @@ def create_schema(schema):
|
||||
print(f" Attempting to create schema: {schema['prefix']}")
|
||||
|
||||
try:
|
||||
request = requests.post(request_url, headers, json=schema, cookies=cookies)
|
||||
request = requests.post(
|
||||
request_url, headers=headers, json=schema, cookies=cookies
|
||||
)
|
||||
except requests.ConnectionError:
|
||||
sys.stderr.write(f" Could not connect to REST API: {args.request_url}\n")
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user