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

Add functionality to add headers to the request #43

Conversation

rustycl0ck
Copy link
Member

@rustycl0ck rustycl0ck commented Jul 29, 2020

Based on #30 with following changes:

  • Update the example config to use headers as well as the metrics keys in alignment with the new code
  • Change the header config from a list to a map.
    From:
    headers:
      - X-Dummy: my-header
      - X-Test: another-header
    
    To:
    headers:
      X-Dummy: my-header
      X-Test: another-header
    
  • Fix the bug where the new header feature wasn't working because of passing wrong pointers
  • Add default header Accept: application/json

Vincent Cui and others added 3 commits July 29, 2020 19:15
* Update the example config to use `headers` as well as the `metrics` keys in alignment with the new code
* Change the header config from a list to a map.
  From:
  ```
  headers:
    - X-Dummy: my-header
    - X-Test: another-header
  ```
  To:
  ```
  headers:
    X-Dummy: my-header
    X-Test: another-header
  ```
* Fix the bug where the new header feature wasn't working because of passing wrong pointers

Signed-off-by: rustyclock <[email protected]>
@rustycl0ck
Copy link
Member Author

This is ready for review @SuperQ, @roidelapluie

@rustycl0ck
Copy link
Member Author

Close this in favor of #49 which already includes the changes/fixes from this PR.

@rustycl0ck rustycl0ck deleted the feature/add_header_functionality branch November 30, 2020 07:01
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.

1 participant