laracord / framework

A Discord bot micro-framework powered by Laravel.
https://laracord.com
MIT License
33 stars 10 forks source link

🩹 Fix token authorization #113

Closed bonzai closed 3 months ago

bonzai commented 3 months ago

My previous PR (#112) doesn't handle the case when someone makes a request with the Content-Type: application/json header. The $request->input method will use the JSON data (payload) instead of the request data (parameters).

The easiest fix is to use the $request->get method from Symfony, as it can retrieve data from both the query string and request body parameters.

Log1x commented 3 months ago

Great! Appreciate it.