diff options
| author | LukePulverenti <luke.pulverenti@gmail.com> | 2013-03-13 10:01:02 -0400 |
|---|---|---|
| committer | LukePulverenti <luke.pulverenti@gmail.com> | 2013-03-13 10:01:02 -0400 |
| commit | b94417b845de4bd5c8e0b2abeaa50958135c7878 (patch) | |
| tree | a98a3df7fc56afed17a6772742124751cc478aea /MediaBrowser.Server.Implementations/HttpServer/BaseRestService.cs | |
| parent | ff55da9029f8b18343dbf65ca2afa643b6e0877f (diff) | |
#22 - Support Http Head requests
Diffstat (limited to 'MediaBrowser.Server.Implementations/HttpServer/BaseRestService.cs')
| -rw-r--r-- | MediaBrowser.Server.Implementations/HttpServer/BaseRestService.cs | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/MediaBrowser.Server.Implementations/HttpServer/BaseRestService.cs b/MediaBrowser.Server.Implementations/HttpServer/BaseRestService.cs index baa5b0888..e301f0496 100644 --- a/MediaBrowser.Server.Implementations/HttpServer/BaseRestService.cs +++ b/MediaBrowser.Server.Implementations/HttpServer/BaseRestService.cs @@ -270,7 +270,12 @@ namespace MediaBrowser.Server.Implementations.HttpServer } httpListenerResponse.ContentLength64 = stream.Length; - return new StreamWriter(stream, Logger); + return headersOnly ? null : new StreamWriter(stream, Logger); + } + + if (headersOnly) + { + return null; } string content; |
