Xuanwo commented on code in PR #3771:
URL:
https://github.com/apache/incubator-opendal/pull/3771#discussion_r1430298067
##########
core/src/raw/http_util/multipart.rs:
##########
@@ -291,7 +291,19 @@ impl Part for FormDataPart {
// Building pre-content.
for (k, v) in self.headers.iter() {
- bs.extend_from_slice(k.as_str().as_bytes());
+ // 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" => {
Review Comment:
They are not http headers. Tricky things do happen inside HTTP form.
--
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]