Correctly detect protocol when normalizing request options. Fixes #210.