excilys/gatling — pull request #615 by nire (2012-07-27 09:33:31+00:00)
Title: Don't encode twice the url when following a redirect

If a run a simulation where I have http.rawUrl=false and followRedirect=true, when I get this reponse from the server

```
Response DefaultHttpResponse(chunked: false)
HTTP/1.0 302 Found
Location: http://access.secutix.com/wrcontroller1/selectqueue.do?queue=q-LDT&source=https%3a%2f%2fone.secutix.com%2ftnsa10%2flive%2fshop%2fLDT%2fINTERNET%2fts%2fevent%2findex.php
Cache-Control: no-cache
Pragma: no-cache
Expires: Mon, 26 Jul 1997 05:00:00 GMT
Retry-After: 1
Server: BigIP
Connection: Keep-Alive
Content-Length: 0
```

Galting is then sending the following request :

```
11:30:53.748 [DEBUG] c.n.h.c.p.n.NettyConnectionsPool - Adding uri: https://one.secutix.com:443 for channel [id: 0x4fbc79fa, /10.10.176.49:43533 => one.secutix.com/193.73.238.153:443]
11:30:53.813 [DEBUG] c.n.h.c.p.n.NettyAsyncHttpProvider -
Non cached request
DefaultHttpRequest(chunked: false)
GET /wrcontroller1/selectqueue.do?queue=q-LDT&source=https%253a%252f%252fone.secutix.com%252ftnsa10%252flive%252fshop%252fLDT%252fINTERNET%252fts%252fevent%252findex.php HTTP/1.1
Host: access.secutix.com
Accept: image/png,image/*;q=0.8,*/*;q=0.5
Accept-Language: en-us,en;q=0.5
Accept-Encoding: gzip
Connection: keep-alive
User-Agent: NING/1.0
```

The URL is encoded twice ...