Skip to content

Commit 75905e0

Browse files
committed
Minor update of 3rd party bottle library
1 parent 6aa4d9b commit 75905e0

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

lib/core/settings.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
from thirdparty.six import unichr as _unichr
2121

2222
# sqlmap version (<major>.<minor>.<month>.<monthly commit>)
23-
VERSION = "1.6.3.0"
23+
VERSION = "1.6.3.1"
2424
TYPE = "dev" if VERSION.count('.') > 2 and VERSION.split('.')[-1] != '0' else "stable"
2525
TYPE_COLORS = {"dev": 33, "stable": 90, "pip": 34}
2626
VERSION_STRING = "sqlmap/%s#%s" % ('.'.join(VERSION.split('.')[:-1]) if VERSION.count('.') > 2 and VERSION.split('.')[-1] == '0' else VERSION, TYPE)

thirdparty/bottle/bottle.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1363,7 +1363,7 @@ def _body(self):
13631363

13641364
def _get_body_string(self, maxread):
13651365
""" Read body into a string. Raise HTTPError(413) on requests that are
1366-
to large. """
1366+
too large. """
13671367
if self.content_length > maxread:
13681368
raise HTTPError(413, 'Request entity too large')
13691369
data = self.body.read(maxread + 1)
@@ -1594,7 +1594,7 @@ def __getattr__(self, name):
15941594
def __setattr__(self, name, value):
15951595
if name == 'environ': return object.__setattr__(self, name, value)
15961596
key = 'bottle.request.ext.%s' % name
1597-
if key in self.environ:
1597+
if hasattr(self, name):
15981598
raise AttributeError("Attribute already defined: %s" % name)
15991599
self.environ[key] = value
16001600

@@ -1655,7 +1655,7 @@ class BaseResponse(object):
16551655
default_status = 200
16561656
default_content_type = 'text/html; charset=UTF-8'
16571657

1658-
# Header blacklist for specific response codes
1658+
# Header denylist for specific response codes
16591659
# (rfc2616 section 10.2.3 and 10.3.5)
16601660
bad_headers = {
16611661
204: frozenset(('Content-Type', 'Content-Length')),
@@ -2928,8 +2928,8 @@ def static_file(filename, root,
29282928
ims = getenv('HTTP_IF_MODIFIED_SINCE')
29292929
if ims:
29302930
ims = parse_date(ims.split(";")[0].strip())
2931-
if ims is not None and ims >= int(stats.st_mtime):
2932-
return HTTPResponse(status=304, **headers)
2931+
if ims is not None and ims >= int(stats.st_mtime):
2932+
return HTTPResponse(status=304, **headers)
29332933

29342934
body = '' if request.method == 'HEAD' else open(filename, 'rb')
29352935

0 commit comments

Comments
 (0)