splunk-sdk-python icon indicating copy to clipboard operation
splunk-sdk-python copied to clipboard

TypeError when adding cookie header

Open chrisbalmer opened this issue 4 years ago • 1 comments

Describe the bug In line 547 when adding the Cookie header, it is not appending it as a tuple and is instead sending two arguments directly to list.append. This results in an error:

TypeError: append() takes exactly one argument (2 given)

You can see in line 545 another header being appended as a tuple.

To Reproduce Have cookies without an auth token.

Expected behavior Cookie is appended as a tuple

Splunk (please complete the following information):

  • Version: 8.2.6
  • OS: Ubuntu 22.04
  • Deployment: single-instance

SDK (please complete the following information):

  • Version: 1.7.0

chrisbalmer avatar Aug 04 '22 14:08 chrisbalmer

I was looking at how to submit a PR and browsed through the dev branch and saw this is fixed already. Closing.

chrisbalmer avatar Aug 04 '22 15:08 chrisbalmer