summaryrefslogtreecommitdiff
path: root/src/saml2/ecp.py
diff options
context:
space:
mode:
authorEgor Panfilov <edpanfilov@sbcloud.ru>2018-11-19 18:15:14 +0300
committerEgor Panfilov <edpanfilov@sbcloud.ru>2018-11-19 18:24:06 +0300
commitf15ad580d7f8d6cd933963ea69f3fb3896cfa254 (patch)
treef57f99af4e7b17aa9a73387e023a66f14f8cb661 /src/saml2/ecp.py
parentc07b12e208d6246b2d6219635884c184f1c11649 (diff)
downloadpysaml2-f15ad580d7f8d6cd933963ea69f3fb3896cfa254.tar.gz
Replace string literals with MIME_PAOS
Diffstat (limited to 'src/saml2/ecp.py')
-rw-r--r--src/saml2/ecp.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/saml2/ecp.py b/src/saml2/ecp.py
index 5817cda4..56448e9c 100644
--- a/src/saml2/ecp.py
+++ b/src/saml2/ecp.py
@@ -6,7 +6,7 @@
Contains classes used in the SAML ECP profile
"""
import logging
-from saml2.client_base import ACTOR
+from saml2.client_base import ACTOR, MIME_PAOS
from saml2.ecp_client import SERVICE
from saml2 import element_to_extension_element
@@ -30,7 +30,7 @@ logger = logging.getLogger(__name__)
def ecp_capable(headers):
- if "application/vnd.paos+xml" in headers["Accept"]:
+ if MIME_PAOS in headers["Accept"]:
if "PAOS" in headers:
if 'ver="%s";"%s"' % (paos.NAMESPACE,
SERVICE) in headers["PAOS"]: