Skip to content
Snippets Groups Projects
Commit 99e620fd authored by Daniel Perez's avatar Daniel Perez
Browse files

fix: adding missing header

parent ed88973b
No related branches found
No related tags found
2 merge requests!248fix: add missing header partition id in dataset lock, patch, and get storage auth token,!247fix: add missing header partition id in dataset lock, patch, and get storage auth token
Pipeline #276053 passed with warnings
......@@ -484,6 +484,7 @@ namespace seismicdrive
// add the write lock (if not specified the service will generate one for you)
http.add_header("x-seismic-dms-lockid", generateLockID(LockMode::WRITE));
http.add_header("data-partition-id", sdpath.getTenantName());
setDefaultCallbacks(http);
http.add_header("content-type", "application/json");
......@@ -1040,6 +1041,7 @@ namespace seismicdrive
http.set_url(sdurl + "/utility/gcs-access-token");
http.add_url_param("sdpath", subProjectResource);
http.add_url_param("readonly", readonlystr);
http.add_header("data-partition-id", subProjectResource.substr(5, (subProjectResource.find('/', 5) - 5)));
http.add_header("content-type", "application/json");
http.add_header(sdutils::isURLaGCPKnownDeploymentHost(sdurl) ? "x-api-key" : "appkey", sdapikey);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment