masylum/linkedin-js — pull request #3 by gmodena (2011-10-17 21:06:25+00:00)
Title: Expressjs fixes

Hi,

this change set includes some fixes to make the example work with recent
versions of express js and a bugfix to an issue with specifying a data return format to parametrized requests.

By default the string "?format=json" is appended to all paths before sending a GET request; this needs to be changed to "&format=json" if one or more parameters have been already specified by a user in apiCall.

Commit 76c21095cb12440d6f32f5d9855507b9283f761d includes a regexp to test against the pattern "/\/*\?/". If the patch matches, an '&' is prepended to "format=json". '?' is used otherwise (default value).