udibo / oauth2_server

A standards compliant implementation of an OAuth 2.0 authorization server with PKCE support.
MIT License
21 stars 4 forks source link

Upgrade oak and remove hasBody checks #32

Closed KyleJune closed 3 years ago

KyleJune commented 3 years ago

In Oak v10.0.0, hasBody has been changed to just return true if body is not undefined and body has been made safe to call. hasBody is considered unreliable. If there isn't a body, body will return an empty body instead of throwing an error. Because of that, checking if there is a body is no longer needed.

https://deno.land/x/oak@v10.0.0#request