Uploaded image for project: 'Appcelerator - INBOX'
  1. Appcelerator - INBOX
  2. AC-2400

iOS: HTTPClient: autoEncodeURL not used when redirect is followed

    Details

    • Type: Bug
    • Status: Closed
    • Resolution: Fixed
    • Affects Version/s: None
    • Component/s: Alloy
    • Environment:

      I came across the problem in the iPhone (iOS7) simulator but probably a general problem. (Titanium 3.1.2)

      Description

      When trying to GET something which returns a 301, if I set autoEncodeURL to false (via the setter or directly), set autoRedirect to true (or leave it default to that), then the value of the location header returned is encoded before being followed.

      To get around this, I had to set autoRedirect to false. Then in the success callback, get the value of the location header returned and issue another GET manually (with autoEncodeURL set to false).

      Edit:
      This doesn't seem to be a problem on Android

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                mpmiranda Mauro Parra-Miranda
                Reporter:
                adamlynch Adam Lynch
              • Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Git Integration