-
Notifications
You must be signed in to change notification settings - Fork 107
Support multiple parameters with the same name in requests and responses #54
base: master
Are you sure you want to change the base?
Conversation
* Add List.each() method and use in List and Param List * Add List.length() method * Fix constructor superclass calls.
* use new list methods for iteration * fix request and response headers * ignore empty parameters
* Use native forEach if available. * Update copy() to use correct constructor * Update concat() calls to assume a new object is returned
Changes looks great, I think I may have to bump the version number to 2.0.0 as these changes are clearly API breaking. Could you also update the docs https://github.com/bytespider/jsOAuth/blob/gh-pages/api-reference/index.markdown to reflect the changes to the API? Other than that, great work, I'll let the changing of == to === and a few other formatting things slide. |
Thanks. A couple of questions:
I can update the docs. The tests are probably also out of date. |
Yeah tests would be good. No, the 2.0 branch was meant for a complete rewrite that I never completed. What I've done is branched off master for 1.x, so I'm happy for these 2.x changes to be on master. Yea if you could rebase with master, if you didnt already, and squash to a couple or one commit, that would make the merge/history simpler I suspect |
Changes query string from a hash to a list. Changes the JSON data structure for passing in parameters.
Where previously
data
was an object hash, it is now an array: