Uploaded image for project: 'Maistra'
  1. Maistra
  2. MAISTRA-2448

Fix and tests for header-append-filter WASM extension

XMLWordPrintable

    • Icon: Task Task
    • Resolution: Done
    • Icon: Minor Minor
    • maistra-2.1.0
    • None
    • wasm
    • None
    • Sprint 5, Sprint 6, Sprint 7

      There's a small error in the way the extension parses the configuration as JSON. It's adding quotes to them.

      Example (note the header-one and another-header values):

      $ curl -I localhost:18000/
      HTTP/1.1 200 OK
      content-length: 13
      content-type: text/plain
      another-header: "another value"
      header-one: "value one"
      date: Thu, 17 Jun 2021 17:19:56 GMT
      server: envoy
      

       

      While fixing this, let's also add a test so that we don't get regressions.

            jsantana@redhat.com Jonh Wendell
            jsantana@redhat.com Jonh Wendell
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: