don't set content-location

Signed-off-by: Alexey Aristov <aav@acm.org>
This commit is contained in:
Alexey Aristov
2025-09-03 14:56:59 +02:00
parent be1046877b
commit febc654874
2 changed files with 0 additions and 3 deletions
-1
View File
@@ -215,7 +215,6 @@ pub async fn put(request: HttpRequest, payload: Payload) -> HandlerResult<HttpRe
postgres::set_part(&pool, path.workspace, &part_data.key, inline, &part_data).await?;
let mut response = HttpResponse::Created();
response.insert_header((header::CONTENT_LOCATION, part_data.key));
response.insert_header((header::ETAG, part_data.etag));
if uploaded.deduplicated {
-2
View File
@@ -53,7 +53,6 @@ pub async fn put_new_sized_no_multipart(size: usize) -> eyre::Result<()> {
check!(res.status().is_success());
check!(res.headers().get(http::header::ETAG).is_some());
check!(res.headers().get(http::header::CONTENT_LOCATION).is_some());
check_eq!(None, res.header("huly-parts-count"));
// check content
@@ -127,7 +126,6 @@ pub async fn put_existing() -> eyre::Result<()> {
let res = http.key_put(&key).body(text2.clone()).send().await?;
check!(res.status().is_success());
check!(res.headers().get(http::header::ETAG).is_some());
check!(res.headers().get(http::header::CONTENT_LOCATION).is_some());
// check content
let res = http.key_get(&key).send().await?;