fix authentication header extra space (issue #5329)