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

Fix - Retaining Custom Content Types #1088

Merged
merged 1 commit into from
Feb 27, 2016
Merged

Conversation

cnoon
Copy link
Member

@cnoon cnoon commented Feb 27, 2016

This PR fixes an issue in ParameterEncoding where custom content types are not maintained. If the custom content type has already been set on a URLRequestConvertible, it should be maintained rather than being stomped. This is necessary in cases where custom JSON or plist content types are used.

I also added two unit tests to verify this behavior works as intended.

@cnoon cnoon added this to the 3.3.0 milestone Feb 27, 2016
@cnoon cnoon self-assigned this Feb 27, 2016
cnoon added a commit that referenced this pull request Feb 27, 2016
@cnoon cnoon merged commit 68d8bef into master Feb 27, 2016
@cnoon cnoon deleted the fix/custom_content_types branch February 27, 2016 19:24
@cnoon cnoon modified the milestones: 3.2.1, 3.3.0 Feb 27, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant