[Pharo-project] McHttpRepository and text/plain

2012-06-02 Thread Stuart Herring
Hi all, I recently ran into the problem with a server returning text/plain instead of application/octet stream again (see http://lists.gforge.inria.fr/pipermail/pharo-project/2012-April/062388.html), but the resulting error (a MNU for Character>>bitOr:) failed to job my memory as to the actual cau

Re: [Pharo-project] McHttpRepository and text/plain

2012-06-03 Thread Sven Van Caekenberghe
Hi Stuart, On 03 Jun 2012, at 03:41, Stuart Herring wrote: > Hi all, > > I recently ran into the problem with a server returning text/plain > instead of application/octet stream again (see > http://lists.gforge.inria.fr/pipermail/pharo-project/2012-April/062388.html), > but the resulting error (

Re: [Pharo-project] McHttpRepository and text/plain

2012-06-03 Thread Stuart Herring
Hi Sven, > -1 > > #asByteArray does an implicit text to bytes conversion (granted, a stupid > one). > This will (and had conflicted in the past) with the text conversion done > automatically by the HTTP client. > The response simply has to be binary because the data is binary. Yes, I understand