mirror of
https://github.com/C9Glax/tranga.git
synced 2025-09-10 11:58:19 +02:00
Fix #248 double closing OutputStream in response
This commit is contained in:
@@ -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
|
||||||
|
Reference in New Issue
Block a user