a <sameAs:> DNU from : ZnMessage>>isConnectionClose
lb <[email protected]>
| Newsgroups | gmane.comp.lang.smalltalk.squeak.seaside |
|---|---|
| Message-ID | <[email protected]> |
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
_______________________________________________
seaside mailing list
[email protected]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside