Skip to content

Different content type support #1279

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

Merged
merged 2 commits into from
Jul 23, 2025
Merged

Conversation

omursahin
Copy link
Collaborator

No description provided.

@omursahin omursahin requested a review from arcuri82 July 20, 2025 09:47
@@ -132,22 +132,23 @@ public static AuthenticationDto getForJsonTokenBearer(
String payload,
String extractFromField){

return getForJsonToken(dtoName, postEndpoint, payload, extractFromField, "Bearer ");
return getForJsonToken(dtoName, postEndpoint, payload, extractFromField, "Bearer ", "application/json");
}

public static AuthenticationDto getForJsonToken(
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is a breaking change. need to be careful about this utility functions that are used in the drivers. in this case, to avoid breaking current caller, should keep original signature of method, which call this new method with default parameter, ie, something like:

    public static AuthenticationDto getForJsonToken(
            String dtoName,
            String postEndpoint,
            String payload,
            String extractFromField,
            String headerPrefix
    ){
       return getForJsonToken(dtoName, postEndpoint,  ... , "application/json")

@omursahin omursahin requested a review from arcuri82 July 22, 2025 22:11
@arcuri82 arcuri82 merged commit 8945be4 into master Jul 23, 2025
14 checks passed
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.

2 participants