Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

issue-85: enable custom headers for every requests #183

Merged
merged 3 commits into from
Dec 20, 2024
Merged

Conversation

dmitryk-dk
Copy link
Contributor

Updated logic with settings params.
Grafana returns part of the headers in the JSONData as json.RawMessage with names headerName*
and values are stored in the settings.DecryptedSecureJSONData

So it looks like

JSONData:=map[httpHeaderName1:AccountID httpHeaderName2:ProjectID maxLines:20000]
settings.DecryptedSecureJSONData:=map[httpHeaderValue1:0 httpHeaderValue2:0]

In that case i changed the settings variable from struct to map it helps to handle multi headerNames because we can set it more than 1

Related issue: #85

@AndrewChubatiuk AndrewChubatiuk merged commit 8269a3a into main Dec 20, 2024
6 checks passed
@AndrewChubatiuk AndrewChubatiuk deleted the issue-85 branch December 20, 2024 11:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants