Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

"Auth header must be a string" - httpservice?

Asked by 3 years ago

Hello, I am trying to update a github file with httpservice, and github requires two authorization parameters: <username> and <token>.

If I try to use a table as the auth header it errors saying it must be a string, and I need to provide two strings using a table.

Headers = { ["auth"] = { "Username", "API Token" }, ["Content-Type"] = "application/json", },

Answer this question