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 headers typespec #288

Merged
merged 1 commit into from
Sep 12, 2017
Merged

Fix headers typespec #288

merged 1 commit into from
Sep 12, 2017

Conversation

amclain
Copy link
Contributor

@amclain amclain commented Sep 12, 2017

This PR updates the typespec for headers to allow for [{atom, binary}], since the syntax "Content-Type": "application/json" is valid. This was causing an error in a project I'm working on.

Update: Changed spec to [{atom, binary}] instead of keyword(binary) since Elixir 1.2 doesn't support keyword.

@edgurgel edgurgel merged commit 01533e4 into edgurgel:master Sep 12, 2017
@edgurgel
Copy link
Owner

Thanks!

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