News for hackers. Stuff that matters.
Re:Bypassing GitHub's OAuth Flow with a Head Request by ryanisnan on Thursday November 07, 2019 @05:23PM (#21477955)
Rails is not assuming that it's a POST. The conditional logic in the controller explicitly checks for a get, and then else's otherwise. This is an unfortunate consequence of not having routing go to specific methods, e.g. `def post():`.
Re:Bypassing GitHub's OAuth Flow with a Head Request by tptacek on Thursday November 07, 2019 @05:56PM (#21478180)
Rails routing does go to specific methods ordinarily.

What's funny here is, apparently, .get? used to return true for HEAD requests.