You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It looks like we hard-code (and always set) the Prefer: header to "return-no-content" everywhere in C++, rather than it be configured based on options:
In .NET, that header is configurable to a ResponseFormat, which is documented to be one of two values:
<param name="responsePreference"> Specifies whether the response should include the inserted entity in the payload.
Possible values are return-no-content and return-content. </param>
Should we do the same? Is there any unintended consequence of us setting this header when it doesn't need to be set?
If we are fine with always setting this header in the request (even in the cases where other language SDKs don't), then the only actionable part of this issue is:
As an aside, PrepDeleteEntity has this line commented out, which we should either remove or fix if intended
It looks like we hard-code (and always set) the
Prefer:
header to "return-no-content" everywhere in C++, rather than it be configured based on options:azure-sdk-for-cpp/sdk/tables/azure-data-tables/src/table_clients.cpp
Lines 947 to 963 in 384552a
In .NET, that header is configurable to a ResponseFormat, which is documented to be one of two values:
https://github.com/Azure/azure-sdk-for-net/blob/f566cffd72d20403eb934e03e0e6fe4015a878e5/sdk/tables/Azure.Data.Tables/src/Generated/TableRestClient.cs#L1149-L1157
And only if a value is provided, does that header get set:
https://github.com/Azure/azure-sdk-for-net/blob/f566cffd72d20403eb934e03e0e6fe4015a878e5/sdk/tables/Azure.Data.Tables/src/Generated/TableRestClient.cs#L1123-L1126
GoLang also has these ResponseFormat constants:
https://github.com/Azure/azure-sdk-for-go/blob/e8ec092d8456cd6d0cb836f29a9759d3aac2687d/sdk/data/aztables/internal/zz_constants.go#L46-L59
And they get used to optionally set the request header:
https://github.com/Azure/azure-sdk-for-go/blob/e8ec092d8456cd6d0cb836f29a9759d3aac2687d/sdk/data/aztables/internal/zz_table_client.go#L385-L389
As an aside,
PrepDeleteEntity
has this line commented out, which we should either remove or fix if intended:azure-sdk-for-cpp/sdk/tables/azure-data-tables/src/table_clients.cpp
Lines 884 to 887 in 384552a
The text was updated successfully, but these errors were encountered: