Skip to content

Bbox.login() uses 200 instead 201 for a post  #3

@KaoruKanon

Description

@KaoruKanon

Hello, I am using your work and I noticed something.

When I use curl or postman for the url of login of the bbox. They return to me a 201. Currently the login method tests the status code with the value 200. It raise an error that can be fixed by replacing 200 by 201

bbox: F@st 5688b

        if response.status_code == 200:
            self.bbox_auth.set_cookie_id(None)
        return not self.bbox_auth.is_authentified()

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions