NPE fix in Request
Fix: photo gallery now returns proper content length for files
Fix: try again on IOException if stream is not ready for reading
Merge commit '4b0c4f5e8209697aa668a6572e6a0ed4cc57a161'