[vwnc] [7.6][BUG] HttpEntity>>decompressedContents does not match 'x-gzip'

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

[vwnc] [7.6][BUG] HttpEntity>>decompressedContents does not match 'x-gzip'

Boris Popov, DeepCove Labs (SNN)
... corrected (?) method should read,

decompressedContents
 | ce |
 ce := self contentEncoding.
 ^(ce notNil and: ['*gzip*' match: ce])
    ifTrue: [self body decompressedContents]
    ifFalse: [self decodedContents]

Cheers,

-Boris

--
+1.604.689.0322
DeepCove Labs Ltd.
4th floor 595 Howe Street
Vancouver, Canada V6C 2T5
http://tinyurl.com/r7uw4

[hidden email]

CONFIDENTIALITY NOTICE

This email is intended only for the persons named in the message
header. Unless otherwise indicated, it contains information that is
private and confidential. If you have received it in error, please
notify the sender and delete the entire message including any
attachments.

Thank you.


_______________________________________________
vwnc mailing list
[hidden email]
http://lists.cs.uiuc.edu/mailman/listinfo/vwnc
Reply | Threaded
Open this post in threaded view
|

Re: [vwnc] [7.6][BUG] HttpEntity>>decompressedContents does not match 'x-gzip'

Boris Popov, DeepCove Labs (SNN)
It also appears that the protocol is slightly duplicated, but broken in
the same way,

decodedContents
 | ce |
 ^((ce := self contentEncoding) notNil and: ['gzip' match: ce ])
     ifTrue: [(self body decompressedContents withEncoding: self
charset) readStream contents]
     ifFalse: [self decodedContentsWith: self charset ]

decompressedContents
 | ce |
 ce := self contentEncoding.
 ^(ce notNil and: ['gzip' match: ce ])
  ifTrue: [self body decompressedContents]
        ifFalse: [self decodedContents]

Clarity, anyone?

-Boris

--
+1.604.689.0322
DeepCove Labs Ltd.
4th floor 595 Howe Street
Vancouver, Canada V6C 2T5
http://tinyurl.com/r7uw4

[hidden email]

CONFIDENTIALITY NOTICE

This email is intended only for the persons named in the message
header. Unless otherwise indicated, it contains information that is
private and confidential. If you have received it in error, please
notify the sender and delete the entire message including any
attachments.

Thank you.

> -----Original Message-----
> From: Boris Popov
> Sent: Monday, May 12, 2008 2:42 PM
> To: VWNC
> Subject: [7.6][BUG] HttpEntity>>decompressedContents does not match
'x-

> gzip'
>
> ... corrected (?) method should read,
>
> decompressedContents
>  | ce |
>  ce := self contentEncoding.
>  ^(ce notNil and: ['*gzip*' match: ce])
>     ifTrue: [self body decompressedContents]
>     ifFalse: [self decodedContents]
>
> Cheers,
>
> -Boris
>
> --
> +1.604.689.0322
> DeepCove Labs Ltd.
> 4th floor 595 Howe Street
> Vancouver, Canada V6C 2T5
> http://tinyurl.com/r7uw4
>
> [hidden email]
>
> CONFIDENTIALITY NOTICE
>
> This email is intended only for the persons named in the message
> header. Unless otherwise indicated, it contains information that is
> private and confidential. If you have received it in error, please
> notify the sender and delete the entire message including any
> attachments.
>
> Thank you.


_______________________________________________
vwnc mailing list
[hidden email]
http://lists.cs.uiuc.edu/mailman/listinfo/vwnc
Reply | Threaded
Open this post in threaded view
|

Re: [vwnc] [7.6][BUG] HttpEntity>>decompressedContents does not match 'x-gzip'

Boris Popov, DeepCove Labs (SNN)
... and searching for 'gzip' really sent my head spinning,

HttpEntity>>contents
HttpEntity>>decodedByteContentsStream
HttpEntity>>decodedContents
HttpEntity>>decompressedContents
HttpEntity>>isTransferEncodingGZip
TransferEncoding>>isGZipped

-Boris

--
+1.604.689.0322
DeepCove Labs Ltd.
4th floor 595 Howe Street
Vancouver, Canada V6C 2T5
http://tinyurl.com/r7uw4

[hidden email]

CONFIDENTIALITY NOTICE

This email is intended only for the persons named in the message
header. Unless otherwise indicated, it contains information that is
private and confidential. If you have received it in error, please
notify the sender and delete the entire message including any
attachments.

Thank you.

> -----Original Message-----
> From: Boris Popov
> Sent: Monday, May 12, 2008 3:08 PM
> To: 'VWNC'
> Subject: RE: [7.6][BUG] HttpEntity>>decompressedContents does not
match
> 'x-gzip'
>
> It also appears that the protocol is slightly duplicated, but broken
in
> the same way,
>
> decodedContents
>  | ce |
>  ^((ce := self contentEncoding) notNil and: ['gzip' match: ce ])
>      ifTrue: [(self body decompressedContents withEncoding: self
charset)

> readStream contents]
>      ifFalse: [self decodedContentsWith: self charset ]
>
> decompressedContents
>  | ce |
>  ce := self contentEncoding.
>  ^(ce notNil and: ['gzip' match: ce ])
>   ifTrue: [self body decompressedContents]
> ifFalse: [self decodedContents]
>
> Clarity, anyone?
>
> -Boris
>
> --
> +1.604.689.0322
> DeepCove Labs Ltd.
> 4th floor 595 Howe Street
> Vancouver, Canada V6C 2T5
> http://tinyurl.com/r7uw4
>
> [hidden email]
>
> CONFIDENTIALITY NOTICE
>
> This email is intended only for the persons named in the message
> header. Unless otherwise indicated, it contains information that is
> private and confidential. If you have received it in error, please
> notify the sender and delete the entire message including any
> attachments.
>
> Thank you.
>
> > -----Original Message-----
> > From: Boris Popov
> > Sent: Monday, May 12, 2008 2:42 PM
> > To: VWNC
> > Subject: [7.6][BUG] HttpEntity>>decompressedContents does not match
'x-

> > gzip'
> >
> > ... corrected (?) method should read,
> >
> > decompressedContents
> >  | ce |
> >  ce := self contentEncoding.
> >  ^(ce notNil and: ['*gzip*' match: ce])
> >     ifTrue: [self body decompressedContents]
> >     ifFalse: [self decodedContents]
> >
> > Cheers,
> >
> > -Boris
> >
> > --
> > +1.604.689.0322
> > DeepCove Labs Ltd.
> > 4th floor 595 Howe Street
> > Vancouver, Canada V6C 2T5
> > http://tinyurl.com/r7uw4
> >
> > [hidden email]
> >
> > CONFIDENTIALITY NOTICE
> >
> > This email is intended only for the persons named in the message
> > header. Unless otherwise indicated, it contains information that is
> > private and confidential. If you have received it in error, please
> > notify the sender and delete the entire message including any
> > attachments.
> >
> > Thank you.


_______________________________________________
vwnc mailing list
[hidden email]
http://lists.cs.uiuc.edu/mailman/listinfo/vwnc