Skip to content
This repository has been archived by the owner on Jun 28, 2024. It is now read-only.

fix(web): fix response to periodic POST requests #344

Merged
merged 1 commit into from
Nov 2, 2022
Merged

Conversation

dexgs
Copy link
Contributor

@dexgs dexgs commented Nov 2, 2022

The reason POST requests were being responded to with 400 is that in the assignment of payload, the request.json member is used if request.form evaluates as false, but accessing request.json results in an error for some requests, even though flask docs claim that the value will simply be None.

resolves #339

The reason POST requests were being responded to with 400 is that in the
assignment of payload, the request.json member is used if request.form
evaluates as false, but accessing request.json results in an error for
some requests, even though flask docs claim that the value will simply
be `None`.

resolves azlux#339
@azlux azlux merged commit 8a1202b into azlux:master Nov 2, 2022
@azlux
Copy link
Owner

azlux commented Nov 2, 2022

Srry to not fix that myself, I'm "working" (when I get time) on a new implementation.
Thanks for your debug and fix

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Web Interface: POST request always return 400
2 participants