Fix request environment

Was failing with OAuth requests