fix: Explicitly state stix binding

pull/22/head
Hannah Ward 2017-08-18 11:06:13 +01:00
parent 9b7448cfca
commit 8ae5ce723d
No known key found for this signature in database
GPG Key ID: 6F3BAD60DE190290
1 changed files with 3 additions and 2 deletions

View File

@ -84,8 +84,9 @@ while True:
i.version = version
try:
cli.push(pkg.to_xml().decode("utf-8"),
"urn:stix.mitre.org:xml:{}".format(version),
log.info("Using binding %s", "urn:stix.mitre.org:xml:{}".format(version))
cli.push(content=pkg.to_xml().decode("utf-8"),
content_binding="urn:stix.mitre.org:xml:{}".format(version),
uri="{}://{}/services/inbox".format(config.get("protocol", "http"),
config["domain"]),
collection_names=config["taxii"].get("collections", ["collection"]))