Uploaded image for project: 'Couchbase Lite'
  1. Couchbase Lite
  2. CBL-4388

The URL Scheme the HTTP Message is incorrect when using proxy

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Critical
    • 3.0.12
    • 3.0.2
    • LiteCore
    • Security Level: Public
    • None
    • C-iOS 104
    • 1

    Description

      This only impacts CBL-C which is using LiteCore's BuiltInWebSocket. Currently when using proxy, the scheme or the target URL in the start line of the HTTP message is is ws or wss, which is not correct (See the example below). The scheme should be http or https.

      Note: I have tested the issue with the mitmproxy.

      Example 

      Incorrect (Current)

      GET ws://192.168.86.203:4984/db/_blipsync HTTP/1.1 

      Correct

      GET http://192.168.86.203:4984/db/_blipsync HTTP/1.1 

      Attachments

        Issue Links

          Activity

            People

              pasin Pasin Suriyentrakorn
              pasin Pasin Suriyentrakorn
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                PagerDuty