Quantcast
Channel: ASPNETWebStack Issue Tracker Rss Feed
Viewing all articles
Browse latest Browse all 7215

Closed Issue: Bug: serialisation-deserialisation loses UserAgent.Count [303]

$
0
0
When I deserialise-serialise-deserialise and compare request and request2 in code below, UserAgent header has the correct .ToString() value but count is 0. So my unit test was failing:


var stream = new FileStream("Request.bin", FileMode.Open);
var serializer = new MessageContentHttpMessageSerializer();
var request = serializer.DeserializeToRequest(stream);

var memoryStream = new MemoryStream();
serializer.Serialize(request, memoryStream);

memoryStream.Position = 0;
var request2 = serializer.DeserializeToRequest(memoryStream);

Comments: Based on the comment, looks like this is fixed.

Viewing all articles
Browse latest Browse all 7215

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>