explode headers only if not array

Created on 30 July 2023, over 1 year ago

Problem/Motivation

  1. Headers aren't being included in the request
  2. The input box is a single line which doesn't allow me to submit multiple headers
  3. Using '\r\n' may not work cross-platform

Steps to reproduce

  1. Add a rule for Request HTTP data
  2. See that you can't add more than one line in the Headers input box
  3. Add a header
  4. Make a request
  5. The header isn't added

Proposed resolution

  1. Change the input box for Headers to be multi-line
  2. Check if the $headers is already an array before exploding
  3. Change the explode to use only '\n' and then trim the values to remove any '\r' characters
🐛 Bug report
Status

Fixed

Version

2.0

Component

Code

Created by

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024