pheyvaer / solid-chess

A decentralized chess app build on top of Solid.
https://pheyvaer.github.io/solid-chess/
MIT License
51 stars 12 forks source link

PATCH http result 201 should be accepted as valid #56

Open ylebre opened 3 years ago

ylebre commented 3 years ago

I was trying to see if I could start a chess game using php-solid-server as a storage pod. Logging in works, but starting a new game fails because the function 'writePermission' in core.js expects a 200 OK result, whereas php-solid-server returns a '201 Created'

I would have expected any 2xx result to be accepted as 'ok' in this function.

pheyvaer commented 3 years ago

Hi @ylebre

Thanks for creating an issue! Yes, indeed 2xx should be enough.