hoslo commented on issue #3762:
URL:
https://github.com/apache/incubator-opendal/issues/3762#issuecomment-1858744475
Yes, we can add same in this part:
```rust
// Building pre-content.
for (k, v) in self.headers.iter() {
// Trick!
//
// Seafile could not recognize header names like
`content-disposition`
// and requires to use `Content-Disposition`. So we hardcode the
part
// headers name here.
match k.as_str() {
"content-disposition" => {
bs.extend_from_slice("Content-Disposition".as_bytes());
}
_ => {
bs.extend_from_slice(k.as_str().as_bytes());
}
}
bs.extend_from_slice(k.as_str().as_bytes());
bs.extend_from_slice(b": ");
bs.extend_from_slice(v.as_bytes());
bs.extend_from_slice(b"\r\n");
}
```
Should I create a new pr for this?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]