Skip to content

Commit 6917b86

Browse files
committed
fix: Fix deprecated Bottle(autojson=False) behavior
1 parent 7af7135 commit 6917b86

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bottle.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -636,7 +636,7 @@ def __init__(self, **kwargs):
636636
depr(0, 13, "Bottle(autojson) keyword argument.",
637637
"The 'autojson' setting is now part of the app "
638638
"configuration. Fix: `app.config['json.enable'] = False`")
639-
self.config['json.disable'] = True
639+
self.config['json.enable'] = False
640640

641641
self._mounts = []
642642

0 commit comments

Comments
 (0)