spray/spray — pull request #301 by kulikov (2013-05-21 13:39:29+00:00)
Title: spray-can-client: Usage hostname presented in url instead from remoteAddress, because remoteAddress.getHostName may be cached in httpConnections pool

```scala
sendReceive.apply(HttpRequest(
uri = "http://front.kulikov.demo/front.css"
)) foreach (x ⇒ println("\n\n" + x))

Thread.sleep(300)

sendReceive.apply(HttpRequest(
uri = "http://worker.kulikov.demo/doer.css"
)) foreach (x ⇒ println("\n\n" + x))
```

front.kulikov.demo and worker.kulikov.demo both on one ip - 127.0.0.1

And second request failed with 404 File not found, because request will be sent on front.kulikov.demo host (given form cached remoteAddress from first connection)

```
GET http://worker.kulikov.demo/doer.css HTTP 1.1
...
Host: front.kulikov.demo
```