mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-03-31 19:12:44 +00:00
Monotone-Parent: 4557d2116359d7e6bf6cc5b09aa5249747d99199
Monotone-Revision: e662bdb4c427280bc776285f21da6aeb6bb17ddf Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2007-10-26T15:50:27 Monotone-Branch: ca.inverse.sogo
This commit is contained in:
@@ -1,5 +1,10 @@
|
||||
2007-10-26 Wolfgang Sourdeau <wsourdeau@inverse.ca>
|
||||
|
||||
* SoObjects/Mailer/SOGoMailBodyPart.m ([SOGoMailBodyPart
|
||||
-GETAction:]): use the "application/octet-stream" mime type for
|
||||
elements of type "application/x-xpinstall" to avoid confusing
|
||||
Firefox.
|
||||
|
||||
* UI/PreferencesUI/UIxPreferences.m ([UIxPreferences -messageCheckList])
|
||||
([UIxPreferences -itemMessageCheckText])
|
||||
([UIxPreferences -userMessageCheck])
|
||||
|
||||
@@ -258,7 +258,7 @@ static BOOL debugOn = NO;
|
||||
NSException *error;
|
||||
WOResponse *r;
|
||||
NSData *data;
|
||||
NSString *etag;
|
||||
NSString *etag, *mimeType;
|
||||
|
||||
if ((error = [self matchesRequestConditionInContext:_ctx]) != nil) {
|
||||
// TODO: currently we fetch the body structure to get here - check this!
|
||||
@@ -283,14 +283,19 @@ static BOOL debugOn = NO;
|
||||
|
||||
// TODO: wrong, could be encoded
|
||||
r = [(WOContext *)_ctx response];
|
||||
[r setHeader:[self davContentType] forKey:@"content-type"];
|
||||
[r setHeader:[NSString stringWithFormat:@"%d", [data length]]
|
||||
forKey:@"content-length"];
|
||||
|
||||
mimeType = [self davContentType];
|
||||
if ([mimeType isEqualToString: @"application/x-xpinstall"])
|
||||
mimeType = @"application/octet-stream";
|
||||
|
||||
[r setHeader: mimeType forKey:@"content-type"];
|
||||
[r setHeader: [NSString stringWithFormat:@"%d", [data length]]
|
||||
forKey: @"content-length"];
|
||||
|
||||
if ((etag = [self davEntityTag]) != nil)
|
||||
[r setHeader:etag forKey:@"etag"];
|
||||
|
||||
[r setContent:data];
|
||||
|
||||
return r;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user