Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enhance apirequest to allow setting http-header #459

Merged
merged 2 commits into from
May 22, 2021

Conversation

czullu
Copy link

@czullu czullu commented May 21, 2021

In order to do a Graph PATCH Request i needed the ability to pass in the IF-MATCH Header with the etag.
The enhancement allows this by adding a optional Dictionary to APIRequest and APICall which then will be respected in BuildMicrosoftGraphBatchRequestContent.

I did not change BuildSharePointRestBatchRequestContent as I could not see the benefit of doing so and
the IF-MATCH=* in SP-REST has already the todo flag set and will be quite a large change if etag should be respected by default.

Christian Zuellig added 2 commits May 20, 2021 23:19
for BuildSharePointRestBatchRequestContent the IF-MATCH is general set to *
@jansenbe
Copy link
Contributor

Thanks @czullu . This also relates to #306

@jansenbe jansenbe self-assigned this May 21, 2021
@jansenbe jansenbe added the area: framework ⚙ Changes in the SDK core framework code label May 21, 2021
jansenbe added a commit that referenced this pull request May 22, 2021
@jansenbe jansenbe merged commit 90b9d2a into pnp:dev May 22, 2021
@czullu czullu deleted the Enhance_APIRequest_SetHeader branch May 25, 2021 06:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: framework ⚙ Changes in the SDK core framework code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants