#22 - Support Http Head requests

pull/702/head
LukePulverenti 12 years ago
parent ff55da9029
commit b94417b845

@ -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;

Loading…
Cancel
Save