add digest
change timeout 0 to 1
Merge pull request #1691 from matiu/bug/digest

add digest