Hello,
Thanks for your reply.
Could you please let me know which file to look for exactly.
I was looking at the ../taxii_services/middleware.py file and the original developer proposed the following , but it did not make any difference:
Regards,
G.
#xta = request.META.get('HTTP_X_TAXII_ACCEPT', None)^M
**xta = request.META.get('HTTP_X_TAXII_ACCEPT', 'X-TAXII-Content-Type')^M****
if xta is None: # Can respond with whatever we want. try to use the X-TAXII-Content-Type header to pick^**M
xtct = request.META.get('HTTP_X_TAXII_CONTENT_TYPE', None)^M
if xtct == VID_TAXII_XML_10:^M
sm = exception.to_status_message_10()^M
version = VID_TAXII_SERVICES_10^M
else: # Well, we tried - use TAXII XML 1.1 as a default^M
sm = exception.to_status_message_11()^M
version = VID_TAXII_SERVICES_11^M
elif xta == VID_TAXII_XML_10:^M
sm = exception.to_status_message_10()^M
version = VID_TAXII_SERVICES_10^M
elif xta == VID_TAXII_XML_11:^M
sm = exception.to_status_message_11()^M
version = VID_TAXII_SERVICES_11^M
else:^M
# For now, just pretend X-TAXII-Accept was TAXII 1.1^M
# Not 100% sure what the right response is... HTTP Unacceptable?^M
# Squash the exception argument and create a new one for unknown HTTP Accept?^M
sm = exception.to_status_message_11()^M
version = VID_TAXII_SERVICES_11^
... View more