closes #31: using media type from server, guessing only if this is missing