News for hackers. Stuff that matters.
Re:Bypassing GitHub's OAuth Flow with a Head Request by jessaustin on Thursday November 07, 2019 @03:51PM (#21477126)
ISTM it's reasonable not to force everyone not to write a separate HEAD handler everywhere. The main result of that would be lots of 405 errors. This was a really dumb mistake at the application level. Maybe the library needs better documentation, but it shouldn't be made less functional.
Re:Bypassing GitHub's OAuth Flow with a Head Request by latortuga on Thursday November 07, 2019 @05:51PM (#21478136)
Agreed. This is a corner case because Rails encourages you to route different request verbs to different endpoints via the `resource` routing scheme. The situation played out like this because of handling GET and POST via the same action which should not have been done and in general is not something Rails encourages.