mirror of
https://github.com/hcengineering/platform.git
synced 2026-09-08 02:37:44 +02:00
@@ -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 {
|
||||
|
||||
@@ -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?;
|
||||
|
||||
Reference in New Issue
Block a user