# File lib/em-http/middleware/digest_auth.rb, line 22 def request(client, head, body) # Allow HTTP basic auth fallback if @is_digest_auth head['Authorization'] = build_auth_digest(client.req.method, client.req.uri.path, @opts.merge(@digest_params)) else head['Authorization'] = [@opts[:username], @opts[:password]] end [head, body] end