joernchen/metasploit-framework — comment on commit 197eb16f72adfe5f2b764496ed070b0d5a90a22b
File: modules/exploits/multi/http/gitorious_graph.rb line 61
By wchen-r7:

You should use the send_request_cgi() function instead of send_request_raw(), and then leave the user-agent header unspecified. The send_request_cg() function already has a pre-defined user-agent, and allows the user to specify their own custom header by doing like this in msfconsole:
set UserAgent [something]