Uploaded image for project: 'Titanium SDK/CLI'
  1. Titanium SDK/CLI
  2. TIMOB-27701

iOS: Changing request-header in HTTPClient re-appends the new header value

    Details

      Description

      We noticed that if we re-run a request with new request headers (e.g. with a new access token), the new header value is just appended to the old header instead of overwriting the the value.

      For example, if my initial request has request.setRequestHeader('Test', 'myValue'); and I overwrite it with request.setRequestHeader('Test', 'myNewValue');, the actual header sent to the server is 'Test: myValue, myNewValue'.

      This is very critical for production grade apps! I would fix it myself, but unfortunately APSHTTPClient (the library used internally) is closed source.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              hknoechel Hans Knöchel
            • Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:

                Backbone Issue Sync

                • Backbone Issue Sync is enabled for your project, but we do not have any synchronization info for this issue.

                  Git Integration