Use \Request instead of $_SERVER. Working on #2334
Yoda bad statement is.
Merge branch 'master' into refactor/protocol-detection