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

1.5.0: HTTP 302 response headers missing

    Details

      Description

      {html}<div><p>My app talks to a backend service to upload images. After
      successful upload, the service responds with a 302, setting the
      Location: header to the URL of the image.</p>
      <p>The app works with Ti 1.4.2. With 1.5.0, the Location: header is
      missing from the response.</p>
      <p>Client code:<br>
      xhr.open('POST', url, false);<br>
      xhr.onload = function() {<br>
      location = xhr.getResponseHeader('Location');<br>
      after_upload_callback(location);<br>
      };</p>
      <p>xhr.setRequestHeader('Content-Type', 'form-data');<br>
      xhr.setRequestHeader("Cache-Control", "no-cache");<br>
      xhr.send({ file:media });</p></div>{html}

        Attachments

          Activity

            People

            • Assignee:
              rseagraves Reggie Seagraves
              Reporter:
              tomquas tom quas
            • Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Backbone Issue Sync

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

                  Git Integration