search for: 906e06a7744780ef93126adc6f8f10ef

Displaying 1 result from an estimated 1 matches for "906e06a7744780ef93126adc6f8f10ef".

2010 Sep 22
1
help with sockets in R
...e$headers)=='Content-Length')) { content.length <- as.integer(response$headers['Content-Length']) response$body <- readChar(con, nchars=content.length) } close(con) } response$body ends up with "e,\"id\":\"some_doc\",\"rev\":\"7-906e06a7744780ef93126adc6f8f10ef\"}\n" when it should be: "{\"ok\":true,\"id\":\"some_doc\",\"rev\":\"7-906e06a7744780ef93126adc6f8f10ef\"}" Is mixing readLines and readChars on the same connection causing bad juju? If it is, what's the recommended what...