Permalink
Browse files

Send Expect: 100-Continue header for PUT requests.

  • Loading branch information...
1 parent 8d5dccd commit 420179358b34f4abab3ec159e772cf7c347b4121 @samdeane samdeane committed Apr 9, 2013
Showing with 2 additions and 1 deletion.
  1. +2 −1 Sources/Core/DAVRequests.m
@@ -196,7 +196,8 @@ - (id)initWithPath:(NSString*)path originalRequest:(NSURLRequest*)originalReques
NSString* MIMEType = [DAVPutRequest MIMETypeForExtension:[path pathExtension]];
[_request setValue:MIMEType forHTTPHeaderField:@"Content-Type"];
-
+ [_request setValue:@"100-Continue" forHTTPHeaderField:@"Expect"];
+
[_request setHTTPMethod:@"PUT"];
[_request setCachePolicy:NSURLRequestReloadIgnoringLocalCacheData];
[_request setURL:[self concatenatedURLWithPath:path]];

0 comments on commit 4201793

Please sign in to comment.