http.Get headers are broken?

Just wondering because they don’t seem to be working

In this case.
[lua]

http.Get("http://www.darklandservers.com/wat.php","Referer: http://www.darklandservers.com/showthread.php?tid=695&pid=50766
",function(c,s) print© end)

[/lua]

They dont work.

Yes, I’ve bumped into this too.

A suggestion to garry (as if he’ll ever read this): Make the headers argument a table as such:

[lua]http.Get( “http://www.facepunch.com/”, { [“User-Agent”]=“FOOKIN’ MOZILLA INNIT”, [“Referer”]=“http://goatse.fr” }, function() return end )[/lua]

[editline]12:58PM[/editline]


http://getsatisfaction.com/facepunch/topics/fix_the_httpdownload_object