[http] Don't try to compare a string and an integer when running the tests

Fix the problem reported in https://github.com/rg3/youtube-dl/pull/2813#discussion_r12139999.
I don't have too much time right now, so I may have done something wrong.
Pinging @dstftw