Uploaded image for project: 'Libmongocrypt'
  1. Libmongocrypt
  2. MONGOCRYPT-282

Support parsing chunked transfer encoding for HTTP responses

    • Type: Icon: New Feature New Feature
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 1.1.0-beta1
    • Affects Version/s: None
    • Component/s: None
    • None

      GCP HTTP replies are returned as chunked responses.

      HTTP/1.1 200 OK
      Content-Type: application/json; charset=UTF-8
      Vary: X-Origin
      Vary: Referer
      Date: Thu, 24 Sep 2020 14:21:44 GMT
      Server: scaffolding on HTTPServer2
      Cache-Control: private
      X-XSS-Protection: 0
      X-Frame-Options: SAMEORIGIN
      X-Content-Type-Options: nosniff
      Alt-Svc: h3-Q050=":443"; ma=2592000,h3-29=":443"; ma=2592000,h3-27=":443"; ma=2592000,h3-T051=":443"; ma=2592000,h3-T050=":443"; ma=2592000,h3-Q046=":443"; ma=2592000,h3-Q043=":443"; ma=2592000,quic=":443"; ma=2592000; v="46,43"
      Accept-Ranges: none
      Vary: Origin,Accept-Encoding
      Connection: close
      Transfer-Encoding: chunked
      
      105
      {"access_token":"(redacted)","expires_in":3599,"token_type":"Bearer"}
      

      kms_message's HTTP parser does not support it.

            Assignee:
            kevin.albertson@mongodb.com Kevin Albertson
            Reporter:
            kevin.albertson@mongodb.com Kevin Albertson
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: