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
I see many blob test/examples (tests/cloud_blob_test.cpp) for instance includes the following code snippet and I couldn't figure out what it intend to do. Can somebody please explain?
utility::string_t md5_header;
m_context.set_sending_request([&md5_header] (web::http::http_request& request, azure::storage::operation_context)
{
if (!request.headers().match(web::http::header_names::content_md5, md5_header))
{
md5_header.clear();
}
});
Thanks,
Yang
The text was updated successfully, but these errors were encountered:
Thanks for the reply but I have a follow up question concerning the "ms_header_range_get_content_md5" flag in the request header when get_blob is called in
src/blob_request_factory.cpp.
I don't think the conent md5 for the range is returned anywhere in APIs specified in was/blob.h.
How do I check for that Range MD5? Is there a sample code for doing so?
The range MD5 is used to validate data integrity internally and isn't exposed to user directly. If you want to check it, you can provide an operation_context parameter and check HTTP response header after the request is finished.
Hi,
I see many blob test/examples (tests/cloud_blob_test.cpp) for instance includes the following code snippet and I couldn't figure out what it intend to do. Can somebody please explain?
utility::string_t md5_header;
m_context.set_sending_request([&md5_header] (web::http::http_request& request, azure::storage::operation_context)
{
if (!request.headers().match(web::http::header_names::content_md5, md5_header))
{
md5_header.clear();
}
});
Thanks,
Yang
The text was updated successfully, but these errors were encountered: