Fixes #4662: Response returning the wrong protocol
Fixes #4657: Reset the globals after running the tests
Fixes #4718: Duplicate unnecessary line that is not used anymore
Merge pull request #362 from rjd22/3.3/bugfix/unnecessary_variable_in_exception

Fixes #4718: Duplicate unnecessary line that is not used anymore
Merge pull request #361 from rjd22/3.3/bugfix/globals_reset_in_test

Fixes #4657: Reset the globals after running the tests
Merge pull request #358 from rjd22/3.3/bugfix/wrong_http_headers

Fixes #4662: Response returning the wrong protocol