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: change parse accept type logic when accept not set #122

Merged
merged 3 commits into from
Jun 9, 2020

Conversation

wiltonwu
Copy link
Contributor

@wiltonwu wiltonwu commented Jun 8, 2020

Description of changes:

  • This change is to fix the behavior when accept is not specified in the header of the request (occurs during batch transform)
    • If accept is not specified or "*/*", it should default to SAGEMAKER_DEFAULT_INVOCATIONS_ACCEPT env var
  • Previous logic would cause a 'NoneType' object has no attribute 'lower' error

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@wiltonwu wiltonwu merged commit 05ac905 into aws:master Jun 9, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants