[Modify] Polish it
This commit is contained in:
parent
aaf8ea5dab
commit
bd778b45d4
@ -733,9 +733,10 @@ namespace WebSocketSharp.Net
|
|||||||
if (_location != null)
|
if (_location != null)
|
||||||
headers.InternalSet ("Location", _location, true);
|
headers.InternalSet ("Location", _location, true);
|
||||||
|
|
||||||
if (_cookies != null)
|
if (_cookies != null) {
|
||||||
foreach (Cookie cookie in _cookies)
|
foreach (var cookie in _cookies)
|
||||||
headers.InternalSet ("Set-Cookie", cookie.ToResponseString (), true);
|
headers.InternalSet ("Set-Cookie", cookie.ToResponseString (), true);
|
||||||
|
}
|
||||||
|
|
||||||
var enc = _contentEncoding ?? Encoding.Default;
|
var enc = _contentEncoding ?? Encoding.Default;
|
||||||
var writer = new StreamWriter (destination, enc, 256);
|
var writer = new StreamWriter (destination, enc, 256);
|
||||||
|
Loading…
Reference in New Issue
Block a user