Minor update of 3rd party bottle library

This commit is contained in:
Miroslav Stampar 2022-03-03 17:55:50 +01:00
parent 6aa4d9bdf1
commit 75905e0cd9
2 changed files with 6 additions and 6 deletions

View File

@ -20,7 +20,7 @@ from thirdparty import six
from thirdparty.six import unichr as _unichr from thirdparty.six import unichr as _unichr
# sqlmap version (<major>.<minor>.<month>.<monthly commit>) # sqlmap version (<major>.<minor>.<month>.<monthly commit>)
VERSION = "1.6.3.0" VERSION = "1.6.3.1"
TYPE = "dev" if VERSION.count('.') > 2 and VERSION.split('.')[-1] != '0' else "stable" TYPE = "dev" if VERSION.count('.') > 2 and VERSION.split('.')[-1] != '0' else "stable"
TYPE_COLORS = {"dev": 33, "stable": 90, "pip": 34} TYPE_COLORS = {"dev": 33, "stable": 90, "pip": 34}
VERSION_STRING = "sqlmap/%s#%s" % ('.'.join(VERSION.split('.')[:-1]) if VERSION.count('.') > 2 and VERSION.split('.')[-1] == '0' else VERSION, TYPE) VERSION_STRING = "sqlmap/%s#%s" % ('.'.join(VERSION.split('.')[:-1]) if VERSION.count('.') > 2 and VERSION.split('.')[-1] == '0' else VERSION, TYPE)

View File

@ -1363,7 +1363,7 @@ class BaseRequest(object):
def _get_body_string(self, maxread): def _get_body_string(self, maxread):
""" Read body into a string. Raise HTTPError(413) on requests that are """ Read body into a string. Raise HTTPError(413) on requests that are
to large. """ too large. """
if self.content_length > maxread: if self.content_length > maxread:
raise HTTPError(413, 'Request entity too large') raise HTTPError(413, 'Request entity too large')
data = self.body.read(maxread + 1) data = self.body.read(maxread + 1)
@ -1594,7 +1594,7 @@ class BaseRequest(object):
def __setattr__(self, name, value): def __setattr__(self, name, value):
if name == 'environ': return object.__setattr__(self, name, value) if name == 'environ': return object.__setattr__(self, name, value)
key = 'bottle.request.ext.%s' % name key = 'bottle.request.ext.%s' % name
if key in self.environ: if hasattr(self, name):
raise AttributeError("Attribute already defined: %s" % name) raise AttributeError("Attribute already defined: %s" % name)
self.environ[key] = value self.environ[key] = value
@ -1655,7 +1655,7 @@ class BaseResponse(object):
default_status = 200 default_status = 200
default_content_type = 'text/html; charset=UTF-8' default_content_type = 'text/html; charset=UTF-8'
# Header blacklist for specific response codes # Header denylist for specific response codes
# (rfc2616 section 10.2.3 and 10.3.5) # (rfc2616 section 10.2.3 and 10.3.5)
bad_headers = { bad_headers = {
204: frozenset(('Content-Type', 'Content-Length')), 204: frozenset(('Content-Type', 'Content-Length')),