• Vincent Ardisson's avatar
    browser: better guess POST method with empty data in build_request · 04681719
    Vincent Ardisson authored
    Passing data='' or json={} to browser methods like open() or build_request()
    used to make a GET, but this is incorrect.
    
    We can simply check the non-None of one of those params.
    If a Request parameter is used though, it's more implicit, because we cannot
    guess what was the intention, we can't easily distinguish the default value from
    an intentionally empty value
    
        Request().data == []
        Request().json is None
    04681719
Name
Last commit
Last update
.ci Loading commit data...
.gitlab/issue_templates Loading commit data...
contrib Loading commit data...
desktop Loading commit data...
docs Loading commit data...
icons Loading commit data...
man Loading commit data...
modules Loading commit data...
tools Loading commit data...
weboob Loading commit data...
.editorconfig Loading commit data...
.gitignore Loading commit data...
.gitlab-ci.yml Loading commit data...
.mailmap Loading commit data...
AUTHORS Loading commit data...
CONTRIBUTING.md Loading commit data...
COPYING Loading commit data...
COPYING.LESSER Loading commit data...
ChangeLog Loading commit data...
INSTALL Loading commit data...
MANIFEST.in Loading commit data...
MANIFEST.in.modules Loading commit data...
README.md Loading commit data...
build.mk Loading commit data...
setup.cfg Loading commit data...
setup.py Loading commit data...