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 explicit… #1703

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 83.33333% with 1 line in your changes missing coverage. Please review.

Project coverage is 53.95%. Comparing base (fd84020) to head (548b888). Report is 14 commits behind head on main.

Files Patch % Lines
src/main/java/com/shaft/api/RestActions.java 83.33% 0 Missing and 1 partial :warning:
Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #1703 +/- ## ============================================ + Coverage 53.54% 53.95% +0.40% - Complexity 1283 1331 +48 ============================================ Files 111 112 +1 Lines 9945 9998 +53 Branches 959 964 +5 ============================================ + Hits 5325 5394 +69 + Misses 4020 3994 -26 - Partials 600 610 +10 ```

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

KyrillosNageh commented 2 months ago

.