[Modify] Polish it

This commit is contained in:
sta 2019-11-24 21:12:35 +09:00
parent cca8a9a2d4
commit fc90a9e9dc

View File

@ -896,13 +896,15 @@ namespace WebSocketSharp.Net
if (templateResponse == null)
throw new ArgumentNullException ("templateResponse");
if (templateResponse._headers != null) {
var headers = templateResponse._headers;
if (headers != null) {
if (_headers != null)
_headers.Clear ();
Headers.Add (templateResponse._headers);
Headers.Add (headers);
}
else if (_headers != null) {
else {
_headers = null;
}