Update request.rb

Added support for digest authentication, taken from #122