WIP: feat: x-amz-website-redirect-location
support #872
1 changed files with 4 additions and 2 deletions
|
@ -618,9 +618,11 @@ pub(crate) fn get_headers(headers: &HeaderMap<HeaderValue>) -> Result<HeaderList
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Preserve x-amz-meta- headers
|
// Preserve x-amz-meta- and x-amz-website-redirect-location headers
|
||||||
for (name, value) in headers.iter() {
|
for (name, value) in headers.iter() {
|
||||||
if name.as_str().starts_with("x-amz-meta-") {
|
if name.as_str().starts_with("x-amz-meta-")
|
||||||
|
|| name.as_str() == "x-amz-website-redirect-location"
|
||||||
|
{
|
||||||
|
|||||||
ret.push((
|
ret.push((
|
||||||
name.to_string(),
|
name.to_string(),
|
||||||
std::str::from_utf8(value.as_bytes())?.to_string(),
|
std::str::from_utf8(value.as_bytes())?.to_string(),
|
||||||
|
|
Loading…
Reference in a new issue
The value of the header should be validated here to ensure it is syntactically correct, according to S3 rules