Skip to content

Commit

Permalink
fix: Fix deprecated Bottle(autojson=False) behavior
Browse files Browse the repository at this point in the history
  • Loading branch information
defnull committed Nov 18, 2024
1 parent 7af7135 commit 6917b86
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bottle.py
Original file line number Diff line number Diff line change
Expand Up @@ -636,7 +636,7 @@ def __init__(self, **kwargs):
depr(0, 13, "Bottle(autojson) keyword argument.",
"The 'autojson' setting is now part of the app "
"configuration. Fix: `app.config['json.enable'] = False`")
self.config['json.disable'] = True
self.config['json.enable'] = False

self._mounts = []

Expand Down

0 comments on commit 6917b86

Please sign in to comment.