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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.