On 20 Sep 2011, at 12:46, Olivier Auverlot wrote:
Hi,
ZnHTTPSocketFacade seems to be a cool class but why, in many methods, some arguments are ignored.
For example, ZnHTTPSocketFacade class>>#get:accept: can receive an argument for specify the MIME type of the data accepted. But, the code of the method is :
httpGet: url accept: mimeType ^ self httpGet: url args: nil accept: '*/*'
The value of mimeType is always replace by '*/*'. I don't think that it's logical O^O
Someone has an explanation for this behavior ?
That seems to be a copy/paste typo that has been in there for a very long time ;-) Thanks for reporting this. Are there any others like these that you have seen ? BTW, I would not recommend using this class, unless you absolutely need compatibility with very old images. The current recommended client is ZnNeoClient. Sven