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

Not support “If-Match” header which is defined in Odata protocol #754

Closed
vincedan opened this issue Jan 24, 2024 · 1 comment
Closed

Comments

@vincedan
Copy link

current restier version does not support “If-Match” header which is defined in Odata protocol

please compare related logic in src\Microsoft.Restier.AspNetCore\RestierController.cs with with old version(1.0 beta ?). I was wondering something is wrong for handling “If-Match” header and If-None-Match.

Reproduce steps

I use my sample like the following.

--batch_982c-c2f0-75d9
Content-Type: multipart/mixed; boundary=changeset_52bc-e45a-1b95

--changeset_52bc-e45a-1b95
Content-Type: application/http
Content-Transfer-Encoding: binary

PATCH Users(00000aa0-29bb-4904-98bc-71d4900cd10d) HTTP/1.1
Content-ID: 0
IfMatch: W/"YmluYXJ5J0FBQUFBQUFBQ2pvPSc="
Prefer: return=representation
Accept: application/json;odata.metadata=full
Content-Type: application/json;IEEE754Compatible=true

{"FirstName":"3","UserKind":0,"EmployeeType":0}
--changeset_52bc-e45a-1b95--

--batch_982c-c2f0-75d9--

in addition, please add some testcases for these headers.
Thanks in advance.

@vincedan
Copy link
Author

Duplicate of #747
I will follow 747 and comment there。

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

No branches or pull requests

1 participant