Fixed Site#query method

The uri clause was breaking when protocol was different from http