remove trailing whitespace from Authorization header

It's required removing trailing whitespace from Authorization header.

here is strace log of access denied.

```
write(3, "GET / HTTP/1.1\r\nConnection: keep-alive\r\nUser-Agent: user-agent\r\nAuthorization: Basic xxxxxxxxx \r\nHost: x.x.x.x:xxxx\r\n\r\n", 131) = 131
read(3, 0x28ea640, 10240)               = -1 EAGAIN (Resource temporarily unavailable)
select(8, [3], NULL, [3], {9, 998535})  = 1 (in [3], left {9, 998407})
read(3, "HTTP/1.1 401 OK\nWWW-Authenticate: Basic realm=\"XXXXXXXXX\"\nConnection: close\nContent-type: text/html\n\nPlease enter a valid password!\n", 10240) = 131
```