Skip to content

Conversation

@danhaller
Copy link
Contributor

POST endpoints with parameter substitution e.g. ~/foo/{bar} are not working after v7. The user is told that query string parameters cannot be used in combination with payloads, even if the parameter is substituted into the url.

I tracked this down to unintentional mutation in the RequestBuilder.BuildOAuthHeader method, which was adding the substitution parameters back in to the query string parameters after they had been removed.

I've fixed the mutation and renamed a couple of variables to make it a little clearer.

@danhaller
Copy link
Contributor Author

Uh I've just realised I change the wrong test, will fix in a sec

@danhaller danhaller force-pushed the fix-posts-with-substituted-urls branch from 8e23535 to 12b8c0f Compare March 10, 2016 17:28
@danhaller
Copy link
Contributor Author

ok, done

johnjcorcoran added a commit that referenced this pull request Mar 11, 2016
Remove mutation that was adding extra query params
@johnjcorcoran johnjcorcoran merged commit 8bdc4bb into 7digital:master Mar 11, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants