]> err.no Git - sope/blobdiff - sope-appserver/NGObjWeb/DynamicElements/WOEmbeddedObject.m
use %p for pointer formats, fixed gcc 4.1 warnings, minor code improvs
[sope] / sope-appserver / NGObjWeb / DynamicElements / WOEmbeddedObject.m
index 26e6f03503d687632d7aa8c4e822fe4dccb46af2..7edefac1bca10ba48fea86515b439c7ecf759157 100644 (file)
     response = [_ctx response];
     
     [response setContent:adata];
-    [response setHeader:atype ? atype : @"application/octet-stream"
+    [response setHeader:
+               (atype != nil ? atype :(NSString *)@"application/octet-stream")
               forKey:@"content-type"];
     
     return response;