aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Server.Implementations/HttpServer/BaseRestService.cs
diff options
context:
space:
mode:
authorLukePulverenti <luke.pulverenti@gmail.com>2013-03-13 10:01:02 -0400
committerLukePulverenti <luke.pulverenti@gmail.com>2013-03-13 10:01:02 -0400
commitb94417b845de4bd5c8e0b2abeaa50958135c7878 (patch)
treea98a3df7fc56afed17a6772742124751cc478aea /MediaBrowser.Server.Implementations/HttpServer/BaseRestService.cs
parentff55da9029f8b18343dbf65ca2afa643b6e0877f (diff)
#22 - Support Http Head requests
Diffstat (limited to 'MediaBrowser.Server.Implementations/HttpServer/BaseRestService.cs')
-rw-r--r--MediaBrowser.Server.Implementations/HttpServer/BaseRestService.cs7
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;