Uploaded image for project: 'Bitbucket Cloud'
  1. Bitbucket Cloud
  2. BCLOUD-7760

REST API: Event URI Has Changing Content-Type Header

    XMLWordPrintable

Details

    Description

      Within the past few days something has changed in the implementation of the event URI which causes the HTTP 'Content-Type' header to alternate from 'application/json' to 'text/html'. I believe it has something to do with a caching mechanism since it seems to report the correct Content-Type in a first request and subsequent requests return the 'text/html' Content-Type:

      My first request to: https://api.bitbucket.org/1.0/users/thedillonb/events/\\
      Returns: Content-Type →application/json; charset=utf-8

      My second request to: https://api.bitbucket.org/1.0/users/thedillonb/events/\\
      Returns: Content-Type →text/html; charset=utf-8

      And will continue to return 'text/html' for a while.

      The body is still JSON in both cases but the 'Content-Type' is incorrect in some cases.

      Attachments

        Activity

          People

            6995b9ed1710 evzijst
            81e36c57c0c8 thedillonb
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: