mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2024-11-22 01:26:42 +03:00
Minor update of 3rd party bottle library
This commit is contained in:
parent
6aa4d9bdf1
commit
75905e0cd9
|
@ -20,7 +20,7 @@ from thirdparty import six
|
|||
from thirdparty.six import unichr as _unichr
|
||||
|
||||
# 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_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)
|
||||
|
|
6
thirdparty/bottle/bottle.py
vendored
6
thirdparty/bottle/bottle.py
vendored
|
@ -1363,7 +1363,7 @@ class BaseRequest(object):
|
|||
|
||||
def _get_body_string(self, maxread):
|
||||
""" Read body into a string. Raise HTTPError(413) on requests that are
|
||||
to large. """
|
||||
too large. """
|
||||
if self.content_length > maxread:
|
||||
raise HTTPError(413, 'Request entity too large')
|
||||
data = self.body.read(maxread + 1)
|
||||
|
@ -1594,7 +1594,7 @@ class BaseRequest(object):
|
|||
def __setattr__(self, name, value):
|
||||
if name == 'environ': return object.__setattr__(self, name, value)
|
||||
key = 'bottle.request.ext.%s' % name
|
||||
if key in self.environ:
|
||||
if hasattr(self, name):
|
||||
raise AttributeError("Attribute already defined: %s" % name)
|
||||
self.environ[key] = value
|
||||
|
||||
|
@ -1655,7 +1655,7 @@ class BaseResponse(object):
|
|||
default_status = 200
|
||||
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)
|
||||
bad_headers = {
|
||||
204: frozenset(('Content-Type', 'Content-Length')),
|
||||
|
|
Loading…
Reference in New Issue
Block a user