Skip to content

Conversation

postmasters
Copy link
Contributor

The function mimetypes.guess_type returns (None, None) if it fails to
find a matching extension. In that case, we should just treat the media
as application/octet-stream.

@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label Nov 18, 2015

This comment was marked as spam.

@nathanielmanistaatgoogle
Copy link
Contributor

Looks mostly good; thank you for the contribution!

@postmasters
Copy link
Contributor Author

Ping!

@nathanielmanistaatgoogle
Copy link
Contributor

@postmasters: your commit appears to have a different author than it does a committer; is that as you intend it to be?

@tmatsuo: want to be a second pair of eyes on this?

@postmasters
Copy link
Contributor Author

@nathanielmanistaatgoogle I don't understand your comment. Do you see a different email address being used than namnguyen at google.com? The commit should come from that address.

@nathanielmanistaatgoogle
Copy link
Contributor

@postmasters: do you see the text "postmasters committed with Nam T. Nguyen 13 days ago" when you click on the "Commits" tab of this pull request?

@postmasters
Copy link
Contributor Author

Yes. I don't understand what that line is really saying though. "Nam T. Nguyen" is me.

@nathanielmanistaatgoogle
Copy link
Contributor

Do a git log --pretty=fuller at your command line - the author is your @google.com address and the committer is your @chromium.org address.

The function mimetypes.guess_type returns (None, None) if it fails to find a matching extension. In that case, we should just treat the media as application/octet-stream.
@postmasters
Copy link
Contributor Author

Got it. Done.

@tmatsuo
Copy link
Contributor

tmatsuo commented Dec 1, 2015

Looks good to me too :)

nathanielmanistaatgoogle added a commit that referenced this pull request Dec 1, 2015
Default to octet-stream if mimetype detection fails.
@nathanielmanistaatgoogle nathanielmanistaatgoogle merged commit 46a8071 into googleapis:master Dec 1, 2015
@Anmol-Singh-Jaggi
Copy link

When will this be reflected in the PyPI package?

@nathanielmanistaatgoogle
Copy link
Contributor

@Anmol-Singh-Jaggi: It should be reflected in the 1.5.0 PyPI package.

@Anmol-Singh-Jaggi
Copy link

Great! :D

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cla: yes This human has signed the Contributor License Agreement.

5 participants