[#6515][WCF]: Enable custom headers for NET_2_1.
authorMartin Baulig <martin.baulig@xamarin.com>
Mon, 17 Sep 2012 15:27:36 +0000 (17:27 +0200)
committerMartin Baulig <martin.baulig@xamarin.com>
Mon, 17 Sep 2012 15:31:44 +0000 (17:31 +0200)
commit25f9a11c6e4507faf04b5601fef388f61d4f3042
tree6d1492ab9fca211c8faaef0af04ee059032d6974
parentcca3cb128fc4f191fe9d93664dfedd90fe3bd763
[#6515][WCF]: Enable custom headers for NET_2_1.

This allows

HttpRequestMessageProperty request = new HttpRequestMessageProperty ();
request.Headers.Add ("Foo", "Bar");

OperationContext.Current.OutgoingMessageProperties.Add (HttpRequestMessageProperty.Name, request);

The code was already there, but disabled for the NET_2_1 profile.
mcs/class/System.ServiceModel/System.ServiceModel.Channels/HttpRequestChannel.cs