horsemeat 2.23.3__tar.gz → 2.24.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {horsemeat-2.23.3 → horsemeat-2.24.0}/PKG-INFO +1 -1
- {horsemeat-2.23.3 → horsemeat-2.24.0}/horsemeat/version.py +1 -1
- {horsemeat-2.23.3 → horsemeat-2.24.0}/horsemeat/webapp/request.py +12 -2
- {horsemeat-2.23.3 → horsemeat-2.24.0}/horsemeat.egg-info/PKG-INFO +1 -1
- {horsemeat-2.23.3 → horsemeat-2.24.0}/MANIFEST.in +0 -0
- {horsemeat-2.23.3 → horsemeat-2.24.0}/README +0 -0
- {horsemeat-2.23.3 → horsemeat-2.24.0}/horsemeat/__init__.py +0 -0
- {horsemeat-2.23.3 → horsemeat-2.24.0}/horsemeat/configwrapper.py +0 -0
- {horsemeat-2.23.3 → horsemeat-2.24.0}/horsemeat/model/__init__.py +0 -0
- {horsemeat-2.23.3 → horsemeat-2.24.0}/horsemeat/model/newsmessage.py +0 -0
- {horsemeat-2.23.3 → horsemeat-2.24.0}/horsemeat/model/session.py +0 -0
- {horsemeat-2.23.3 → horsemeat-2.24.0}/horsemeat/model/user.py +0 -0
- {horsemeat-2.23.3 → horsemeat-2.24.0}/horsemeat/pg.py +0 -0
- {horsemeat-2.23.3 → horsemeat-2.24.0}/horsemeat/scripts/make-frippery-project +0 -0
- {horsemeat-2.23.3 → horsemeat-2.24.0}/horsemeat/tests/__init__.py +0 -0
- {horsemeat-2.23.3 → horsemeat-2.24.0}/horsemeat/tests/test_configwrapper.py +0 -0
- {horsemeat-2.23.3 → horsemeat-2.24.0}/horsemeat/webapp/__init__.py +0 -0
- {horsemeat-2.23.3 → horsemeat-2.24.0}/horsemeat/webapp/bogusrequest.py +0 -0
- {horsemeat-2.23.3 → horsemeat-2.24.0}/horsemeat/webapp/dispatcher.py +0 -0
- {horsemeat-2.23.3 → horsemeat-2.24.0}/horsemeat/webapp/framework_templates/__init__.py +0 -0
- {horsemeat-2.23.3 → horsemeat-2.24.0}/horsemeat/webapp/frameworkhandlers.py +0 -0
- {horsemeat-2.23.3 → horsemeat-2.24.0}/horsemeat/webapp/handler.py +0 -0
- {horsemeat-2.23.3 → horsemeat-2.24.0}/horsemeat/webapp/response.py +0 -0
- {horsemeat-2.23.3 → horsemeat-2.24.0}/horsemeat/webapp/scrubber.py +0 -0
- {horsemeat-2.23.3 → horsemeat-2.24.0}/horsemeat.egg-info/SOURCES.txt +0 -0
- {horsemeat-2.23.3 → horsemeat-2.24.0}/horsemeat.egg-info/dependency_links.txt +0 -0
- {horsemeat-2.23.3 → horsemeat-2.24.0}/horsemeat.egg-info/requires.txt +0 -0
- {horsemeat-2.23.3 → horsemeat-2.24.0}/horsemeat.egg-info/top_level.txt +0 -0
- {horsemeat-2.23.3 → horsemeat-2.24.0}/requirements.txt +0 -0
- {horsemeat-2.23.3 → horsemeat-2.24.0}/setup.cfg +0 -0
- {horsemeat-2.23.3 → horsemeat-2.24.0}/setup.py +0 -0
@@ -1,6 +1,5 @@
|
|
1
1
|
# vim: set expandtab ts=4 sw=4 filetype=python fileencoding=utf8:
|
2
2
|
|
3
|
-
import cgi
|
4
3
|
import collections.abc
|
5
4
|
import http.cookies
|
6
5
|
import hashlib
|
@@ -519,7 +518,18 @@ class Request(collections.abc.MutableMapping):
|
|
519
518
|
def parsed_content_type(self):
|
520
519
|
|
521
520
|
if self.CONTENT_TYPE:
|
522
|
-
|
521
|
+
|
522
|
+
# cgi module is deprecated.
|
523
|
+
#
|
524
|
+
# return cgi.parse_header(self.CONTENT_TYPE)
|
525
|
+
|
526
|
+
# here is recommended new approach
|
527
|
+
# https://docs.python.org/3.11/library/cgi.html#cgi.parse_header
|
528
|
+
|
529
|
+
from email.message import EmailMessage
|
530
|
+
msg = EmailMessage()
|
531
|
+
msg["content-type"] = self.CONTENT_TYPE
|
532
|
+
return msg.get_params()
|
523
533
|
|
524
534
|
@property
|
525
535
|
def charset(self):
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|