b562bce Fix the request context as data is only accessible in POST requests

Authored and Committed by pingou 5 years ago
    Fix the request context as data is only accessible in POST requests
    
    This worked on new flask version and doesn't on old version but this
    commit makes the test works on old and new flask versions.
    
    Signed-off-by: Pierre-Yves Chibon <pingou@pingoured.fr>