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 Content-Type header to PUT and POST requests #701

Merged
merged 2 commits into from
Jul 4, 2023

Conversation

aleksatr
Copy link
Contributor

@aleksatr aleksatr commented Jul 3, 2023

Pull Request Checklist

Description of PR
Currently, outgoing PUT and POST requests don't have a "Content-Type" header ("application/json" in all cases here).
Argo doesn't seem to mind that, but when interfacing with other HTTP servers (or proxies) this may be a requirement for a JSON payload.

This PR adds "Content-Type" header to all PUT and POST requests.

Signed-off-by: aleksatr <aleksatr@gmail.com>
Signed-off-by: aleksatr <aleksatr@gmail.com>
@flaviuvadan flaviuvadan added semver:patch A change requiring a patch version bump type:enhancement A general enhancement labels Jul 4, 2023
@codecov
Copy link

codecov bot commented Jul 4, 2023

Codecov Report

Merging #701 (532a2a6) into main (49f1361) will not change coverage.
The diff coverage is n/a.

@@          Coverage Diff          @@
##            main    #701   +/-   ##
=====================================
  Coverage   77.4%   77.4%           
=====================================
  Files         45      45           
  Lines       3325    3325           
  Branches     634     634           
=====================================
  Hits        2575    2575           
  Misses       575     575           
  Partials     175     175           

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@sambhav sambhav merged commit 51c161b into argoproj-labs:main Jul 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
semver:patch A change requiring a patch version bump type:enhancement A general enhancement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants