conan-io/conan

View on GitHub
conans/server/service/mime.py

Summary

Maintainability
A
0 mins
Test Coverage
def get_mime_type(filepath):
    if filepath.endswith(".tgz"):
        mimetype = "x-gzip"
    elif filepath.endswith(".txz"):
        mimetype = "x-xz"
    else:
        mimetype = "auto"

    return mimetype