ShaftHQ / SHAFT_ENGINE

SHAFT is a unified test automation engine for web, mobile, API, CLI, database, and desktop e2e testing. Powered by best-in-class frameworks, SHAFT provides a wizard-like syntax to drive your automation efficiently, maximize your ROI, and minimize your learning curve with no limitations! Stop reinventing the wheel! Upgrade now!
https://shafthq.github.io/
MIT License
330 stars 127 forks source link

Fix: Ensure Content-Type is set based on header value if not explicitly set #1704

Closed KyrillosNageh closed 2 months ago

KyrillosNageh commented 2 months ago

Fixes #1697

This PR ensures that the Content-Type is set based on the header value if it is not explicitly set by the user.

codecov[bot] commented 2 months ago

Codecov Report

Attention: Patch coverage is 33.33333% with 4 lines in your changes missing coverage. Please review.

Project coverage is 52.57%. Comparing base (5652a7c) to head (93c6e96). Report is 1 commits behind head on main.

Files Patch % Lines
src/main/java/com/shaft/api/RestActions.java 33.33% 2 Missing and 2 partials :warning:
Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #1704 +/- ## ============================================ - Coverage 52.67% 52.57% -0.11% Complexity 1268 1268 ============================================ Files 112 112 Lines 9993 9998 +5 Branches 962 964 +2 ============================================ - Hits 5264 5256 -8 - Misses 4123 4138 +15 + Partials 606 604 -2 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.