if (v != null)
return v;
+ v = content.LoadedBufferLength;
+ if (v != null)
+ return v;
+
long l;
- if (content.TryComputeLength (out l))
+ if (content.TryComputeLength (out l)) {
+ // .net compatibility reading value actually set header property value
+ SetValue ("Content-Length", l);
return l;
+ }
return null;
}
return GetValue<byte[]> ("Content-MD5");
}
set {
- AddOrRemove ("Content-MD5", value);
+ AddOrRemove ("Content-MD5", value, Parser.MD5.ToString);
}
}