diff options
| author | Luke Pulverenti <luke.pulverenti@gmail.com> | 2016-11-12 02:14:04 -0500 |
|---|---|---|
| committer | Luke Pulverenti <luke.pulverenti@gmail.com> | 2016-11-12 02:14:04 -0500 |
| commit | a855864207fe3ed0ac9b4d648617bb1cb39df3f3 (patch) | |
| tree | ec53ae5d97f8a12b2cbaeeaaf1066b976376f72d /ServiceStack/Host/ContentTypes.cs | |
| parent | c035f2baa1f3537d298a6559d15bd7ca40188e5d (diff) | |
limit access to response stream
Diffstat (limited to 'ServiceStack/Host/ContentTypes.cs')
| -rw-r--r-- | ServiceStack/Host/ContentTypes.cs | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/ServiceStack/Host/ContentTypes.cs b/ServiceStack/Host/ContentTypes.cs index 58ba29801..8840e7c8b 100644 --- a/ServiceStack/Host/ContentTypes.cs +++ b/ServiceStack/Host/ContentTypes.cs @@ -18,15 +18,7 @@ namespace ServiceStack.Host serializer(response, responseStream); } - public Action<object, IResponse> GetResponseSerializer(string contentType) - { - var serializer = GetStreamSerializer(contentType); - if (serializer == null) return null; - - return (dto, httpRes) => serializer(dto, httpRes.OutputStream); - } - - public Action<object, Stream> GetStreamSerializer(string contentType) + private Action<object, Stream> GetStreamSerializer(string contentType) { switch (GetRealContentType(contentType)) { |
