ubc / iPeer

Peer Evaluation System
http://ipeer.ctlt.ubc.ca
Other
17 stars 18 forks source link

Fix a problem where Canvas does not accept GET parameters in body #592

Closed wynnset closed 6 years ago

wynnset commented 6 years ago

Canvas handles array parameters differently depending on whether you use GET or POST. If it's GET, it requires the array variable name to be postfixed with square brackets i.e. []. However, for POST, it would not accept square brackets for variables in the body of the POST. This PR fixes that issues by removing the square brackets for POST requests only. Additionally, we were sending GET request parameters in the body. We have now changed it to instead send it in the URL, like a regular GET request.

Fixes #591