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