ansible/ansible — pull request #8725 by quiver (2014-08-23 03:14:02+00:00)
Title: [get_url module]parse content-disposition filename parameter even if it's not quoted

`get_url` module currently parses `content-disposition` response header field if `filename` parameter is double quoted.
But some servers do not quote `filename` parameter. One notable example is github's download server.

```
$ curl --head https://codeload.github.com/antirez/redis/tar.gz/3.0.0-beta8
HTTP/1.1 200 OK
Content-Length: 1327483
Access-Control-Allow-Origin: https://render.githubusercontent.com
Content-Security-Policy: default-src 'none'
X-XSS-Protection: 1; mode=block
X-Frame-Options: deny
X-Content-Type-Options: nosniff
Strict-Transport-Security: max-age=31536000
Vary: Authorization,Accept-Encoding
ETag: "f3b0cbd15c2e5afb1d309ed4de548d334ef85900"
Content-Type: application/x-gzip
Content-Disposition: attachment; filename=redis-3.0.0-beta8.tar.gz
Date: Sat, 23 Aug 2014 02:59:29 GMT
```
This PR tries to parse this parameter even if it's not double quoted.

For RFC specification wise, `Content-Disposition` has a lot more varieties(See RFC 6266).
But the spec is too complex and this simple PR should solve more than 99.99% cases.