ServiceStack/ServiceStack — pull request #54 by pvasek (2011-12-30 16:10:46+00:00)
Title: Bugfix in RequestContextExtensions.ToOptimizedResult method

Added an overloaded method ContentSerializer.ToOptimizedResult(IRequestContext context, T result) which passes the given context to the underlying methods.

The previous implementation failed because the HtmlFormat.SerializeToStream needed IHttpRequest which was not available in the SerializationContext.