unit icon indicating copy to clipboard operation
unit copied to clipboard

HTTP: Added variable validation to the response_headers option

Open hongzhidao opened this issue 11 months ago • 9 comments

This is to improve error messages for response headers configuration. Take the configuration as an example:

  {
      "response_headers": {
          "a": "$b"
      }
  }

Previously, when applying it the user would see this error message:

  failed to apply previous configuration

After this change, the user will see this improved error message:

  the previous configuration is invalid: Unknown variable "b" in the "a" value

hongzhidao avatar Mar 18 '24 07:03 hongzhidao