Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-61300

FollowRedirectsAttribute messes up some response headers

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: P2: Important P2: Important
    • 5.9.3
    • 5.9.0
    • Network: HTTP
    • None
    • db333d6dba7703a67834a49e42e64c1e04b9ed3a

      If FollowRedirectsAttribute is set to true, some reply response headers contains both headers of original request and redirected one.

      For example content-type may have something like  "text/html; charset=iso-8859-1, image/png", what is basically nonsense. Some other headers have duplicated the same values. And some like Content-Length is taken only from redirected request regardles of  presence in both requests.

       

      In other words it's full of clutter.

       

      There is a dump here for example

      [0] "accept-ranges" "bytes"

      [1] "connection" "keep-alive, keep-alive"

      [2] "content-length" "1828"

      [3] "content-type" "text/html; charset=iso-8859-1, image/png"

      [4] "date" "Wed, 07 Jun 2017 19:06:04 GMT, Wed, 07 Jun 2017 19:06:04 GMT"

      [5] "etag" ""724-5515a6da52800""

      [6] "last-modified" "Wed, 07 Jun 2017 08:21:52 GMT"

      [7] "location" "http://pix.academ.info/images/img/2017/06/07/9ad27447c2c693ef5a657d7b53e462d6.png"

      [8] "server" "nginx/1.10.3, nginx/1.10.3"

      [9] "strict-transport-security" "max-age=15768000, max-age=15768000"

       

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            tpochep Timur Pocheptsov
            rion Rion
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes