parent
c62b9e92e7
commit
f76de87f59
|
@ -40,7 +40,7 @@ class MockTAXIICollectionEndpoint(Collection):
|
||||||
[],
|
[],
|
||||||
)
|
)
|
||||||
if objs:
|
if objs:
|
||||||
return stix2.v21.Bundle(objects=objs)
|
return stix2.v20.Bundle(objects=objs)
|
||||||
else:
|
else:
|
||||||
resp = Response()
|
resp = Response()
|
||||||
resp.status_code = 404
|
resp.status_code = 404
|
||||||
|
@ -63,7 +63,7 @@ class MockTAXIICollectionEndpoint(Collection):
|
||||||
else:
|
else:
|
||||||
filtered_objects = []
|
filtered_objects = []
|
||||||
if filtered_objects:
|
if filtered_objects:
|
||||||
return stix2.v21.Bundle(objects=filtered_objects)
|
return stix2.v20.Bundle(objects=filtered_objects)
|
||||||
else:
|
else:
|
||||||
resp = Response()
|
resp = Response()
|
||||||
resp.status_code = 404
|
resp.status_code = 404
|
||||||
|
|
Loading…
Reference in New Issue