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

iOS: Setting request header in HTTPClient to null throws exception

    Details

    • Sprint:
      2014 Sprint 13 SDK

      Description

      During the ASI library upgrade, one of our patches (The one for 890), slipped through the cracks and was not reinstated. The end result is that setRequestHeader(<key>,null) throws an exception instead fo removing the header as documented. To recreate:

      var xhr = Titanium.Network.createHTTPClient();
      xhr.onerror = function(e){Ti.API.info("ERROR " + e.error);};
      xhr.onload = function(){Ti.API.info("Loaded");};
       
      xhr.open('GET','http://www.appcelerator.com');
      xhr.setRequestHeader('Authorization',null);
      xhr.send();
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                vduggal Vishal Duggal (Inactive)
                Reporter:
                blainhamon Blain Hamon
                Reviewer:
                Sabil Rahim
              • Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Backbone Issue Sync

                  • Titanium SDK/CLI <> Titanium Mobile
                    Synced with:
                    TIMOB-11487
                    Sync status:
                    ERROR
                    Last received:
                    Last sent:

                    Git Integration