-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
finagle-http: Allow for multipart FileElement without Content-Transfe…
…r-Encoding: binary Problem We hard-code all FileElements as binary so an appropriate `Content-Transfer-Encoding` head is added for them. In some cases, we don't want to set any `Content-Transfer-Encoding` (i.e., when FileElement is text/plain). Solution Expose `isText` attribute for FileElement (default is `false`, which doesn't change today's behavior). When set to `true`, no `Content-Transfer-Encoding` header is added to the request. Differential Revision: https://phabricator.twitter.biz/D969859
- Loading branch information
1 parent
af180a2
commit dcfb592
Showing
4 changed files
with
48 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters