[Seaside] a <sameAs:> DNU from : ZnMessage>>isConnectionClose
lb
liangbing64 at 126.com
Thu Apr 12 09:30:43 UTC 2018
Hi,
my website always receives a sameAs: DNU from :
ZnMessage>>isConnectionClose
| value |
value := self headers at: 'Connection' ifAbsent: [ ^ false ].
^ value sameAs: 'close'
value is an Array like #('close' 'close').
I fix like this to avoid receiving DNU message.
isConnectionClose
| value |
value := self headers at: 'Connection' ifAbsent: [ ^ false ].
value isArray ifTrue: [^ (value at: 1) sameAs: 'close'].
value isString ifTrue: [^ value sameAs: 'close'].
^false
I can not confirm that fix is correct.
Liang
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.squeakfoundation.org/pipermail/seaside/attachments/20180412/cb553a57/attachment.html>
More information about the seaside
mailing list