HttpUtils.PostStreamToUrl typo in Stream CopyTo()?

Hi

I’m trying to use PostStreamToUrl in ServiceStack 5.5.0 under .Net 472, at runtime this method throws a System.NotSupportedException: ‘Stream does not support reading.’

Looking at the code it looks like the stream CopyTo() is back to front.

Switching line 804 to the following fixes the problem

requestBody.CopyTo(req);

Regards
Mark

Yeah you’re right, fixed in this commit this change is available from v5.6.1 that’s now available on MyGet.