Update http.rb - fix empty query

If we got empty query (without "?") CGI.parse fails with error (unknown split function on nil).
Merge pull request #2 from padm/master

Update http.rb - fix empty query.