Uploaded image for project: 'Traffic Server'
  1. Traffic Server
  2. TS-3369

Bug in header setting functions in lua plugin

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 5.3.0
    • Lua, Plugins
    • None

    Description

      Here is my sample lua script

      function send_response()
      ts.client_response.header['Vary'] = "x, y, z"
      ts.client_response.header['Vary'] = "xyz"
      end

      function do_remap()
      ts.hook(TS_LUA_HOOK_SEND_RESPONSE_HDR, send_response)
      return 0
      end

      The result is "xyz, y, z" instead of what I expected - "xyz"

      Attachments

        Activity

          People

            kichan Shu Kit Francis Chan
            kichan Shu Kit Francis Chan
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: