Permalink
Browse files

Patch to help the broken lighttpd 1.4 which doesn't know how to deal …

…with the 'Expect' header. This will probably help older versions of Nginx too.
  • Loading branch information...
matburt committed Nov 27, 2010
1 parent 429eaed commit d8304484bc653817d1a16d4e6a3d8681f480137c
Showing with 5 additions and 0 deletions.
  1. +5 −0 src/com/matburt/mobileorg/WebDAVSynchronizer.java
@@ -39,6 +39,8 @@
import android.preference.PreferenceManager;
import android.util.Log;
import android.text.TextUtils;
import org.apache.http.params.CoreProtocolPNames;
import org.apache.http.params.HttpParams;
public class WebDAVSynchronizer implements Synchronizer
{
@@ -354,6 +356,9 @@ private DefaultHttpClient createConnection(String user, String password) {
BasicCredentialsProvider cProvider = new BasicCredentialsProvider();
cProvider.setCredentials(AuthScope.ANY, bCred);
httpClient.setCredentialsProvider(cProvider);
HttpParams params = httpClient.getParams();
params.setBooleanParameter(CoreProtocolPNames.USE_EXPECT_CONTINUE, false);
httpClient.setParams(params);
return httpClient;
}

0 comments on commit d830448

Please sign in to comment.