diff options
author | Rob Austein <sra@hactrn.net> | 2014-12-19 17:38:55 +0000 |
---|---|---|
committer | Rob Austein <sra@hactrn.net> | 2014-12-19 17:38:55 +0000 |
commit | 17dc566f6ab144bb5be8ceaa23595c960d917fba (patch) | |
tree | f099b3b24cbf3b01e89072112efdfd20d4379e9f /rpki/up_down.py | |
parent | b2b0d58c3eecb66c5a36cd912ce7da422065a3b1 (diff) |
Accept either old or new MIME Content-Type in up-down server code, and
allow configuration of either old or new in up-down client code. For
the moment, client defaults to using the old Content-Type, to avoid
breaking deployed services, but this will change at some point.
See #747.
svn path=/trunk/; revision=6045
Diffstat (limited to 'rpki/up_down.py')
-rw-r--r-- | rpki/up_down.py | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/rpki/up_down.py b/rpki/up_down.py index 73a0ae99..5339e9a7 100644 --- a/rpki/up_down.py +++ b/rpki/up_down.py @@ -36,6 +36,16 @@ logger = logging.getLogger(__name__) xmlns = rpki.relaxng.up_down.xmlns nsmap = rpki.relaxng.up_down.nsmap +## @var content_type +# MIME content type to use when sending up-down queries. +#content_type = "application/rpki-updown" +content_type = "application/x-rpki" + +## @var allowed_content_types +# MIME content types which we consider acceptable for incoming up-down +# queries. +allowed_content_types = ("application/rpki-updown", "application/x-rpki") + class base_elt(object): """ Generic PDU object. |