putBytesAsync contentType bug fix