Files
danbooru/test/unit
evazion e2704f6a7b Danbooru::Http: redirect POST to GET on 302.
When a POST request returns a 302 redirect, follow the redirect with a
GET request instead of with a POST request.

HTTP standards leave it unspecified whether a POST request that returns
a 302 redirect should be followed with a GET or with a POST. A GET is
what most browsers use, which means it's what most servers expect.

Fixes the /tagme Discord command not working because when we uploaded
the image to DeepDanbooru, the POST request returned a 302 redirect,
which the server expected us to follow with a GET, not with a POST.

Ref:

* https://stackoverflow.com/questions/17605915/what-is-the-correct-behavior-expected-of-an-http-post-302-redirect-to-get
2021-03-29 03:01:02 -05:00
..
2021-02-09 06:18:36 -06:00
2020-03-21 21:07:35 -05:00
2020-06-20 00:20:39 -05:00
2020-03-21 21:07:35 -05:00
2020-03-21 21:07:35 -05:00
2021-01-11 05:12:09 -06:00