mirror of
https://github.com/moparisthebest/davmail
synced 2024-12-14 03:32:22 -05:00
SMTP: experimental: remove Content-Type on create message to avoid 406 not acceptable with some Exchange servers.
git-svn-id: http://svn.code.sf.net/p/davmail/code/trunk@752 3d1905a2-6b24-0410-a738-b14d5a86fcbd
This commit is contained in:
parent
c4f708d23d
commit
79ba72e092
@ -613,7 +613,6 @@ public class ExchangeSession {
|
||||
|
||||
PutMethod putmethod = new PutMethod(messageUrl);
|
||||
putmethod.setRequestHeader("Translate", "f");
|
||||
putmethod.setRequestHeader("Content-Type", "message/rfc822");
|
||||
try {
|
||||
// use same encoding as client socket reader
|
||||
putmethod.setRequestEntity(new ByteArrayRequestEntity(messageBody.getBytes()));
|
||||
|
Loading…
Reference in New Issue
Block a user