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 HTTP headers for external solver requests #201

Merged
merged 2 commits into from
May 16, 2022
Merged

Add HTTP headers for external solver requests #201

merged 2 commits into from
May 16, 2022

Conversation

nlordell
Copy link
Contributor

This PR just adds HTTP headers indicating that external solver /solve requests both send and only accept JSON.

This is just to be more polite to solvers as some frameworks have friction if the header is missing or not set to application/json.

Test Plan

CI.

@codecov-commenter
Copy link

codecov-commenter commented May 16, 2022

Codecov Report

Merging #201 (7aceff1) into main (4ac71cd) will increase coverage by 0.00%.
The diff coverage is 0.00%.

❗ Current head 7aceff1 differs from pull request most recent head ef36e23. Consider uploading reports for the commit ef36e23 to get more accurate results

@@           Coverage Diff           @@
##             main     #201   +/-   ##
=======================================
  Coverage   64.41%   64.41%           
=======================================
  Files         189      189           
  Lines       38775    38780    +5     
=======================================
+ Hits        24977    24981    +4     
- Misses      13798    13799    +1     

@nlordell nlordell merged commit 9250679 into main May 16, 2022
@nlordell nlordell deleted the add-headers branch May 16, 2022 15:27
@github-actions github-actions bot locked and limited conversation to collaborators May 16, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants