#560 - Fix server config validation issues.

Sorry for the confusion. This is the same as PR https://github.com/gocd/gocd/pull/611, which I merged by mistake.
'getHeadersOfPreviousRequest' is defined but never used.