Fix #248 double closing OutputStream in response
This commit is contained in:
parent
3b9d4a6735
commit
77bb309dfa
@ -208,7 +208,6 @@ public partial class Server : GlobalBase, IDisposable
|
|||||||
response.ContentType = "image/jpeg";
|
response.ContentType = "image/jpeg";
|
||||||
response.AddHeader("Cache-Control", "max-age=600");
|
response.AddHeader("Cache-Control", "max-age=600");
|
||||||
stream.CopyTo(response.OutputStream);
|
stream.CopyTo(response.OutputStream);
|
||||||
response.OutputStream.Close();
|
|
||||||
stream.Close();
|
stream.Close();
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
Loading…
Reference in New Issue
Block a user