diff options
Diffstat (limited to 'nbxmpp/const.py')
-rw-r--r-- | nbxmpp/const.py | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/nbxmpp/const.py b/nbxmpp/const.py index fe0d9c5..932a98f 100644 --- a/nbxmpp/const.py +++ b/nbxmpp/const.py @@ -23,6 +23,7 @@ from packaging.version import Version from gi.repository import Gio from gi.repository import GLib +from gi.repository import Soup GLIB_VERSION = Version( @@ -706,3 +707,13 @@ NOT_ALLOWED_XML_CHARS = { '\x0C': '', '\x1B': '' } + + +SOUP_ENCODING: set[Soup.Encoding] = { + Soup.Encoding.UNRECOGNIZED, + Soup.Encoding.NONE, + Soup.Encoding.CONTENT_LENGTH, + Soup.Encoding.EOF, + Soup.Encoding.CHUNKED, + Soup.Encoding.BYTERANGES, +} |