since v1.4.0 accept return AcceptType objects instead of strings
Merge pull request #104 from vidbina/fix/typos

modified code snippet to reflect that accept returns an AcceptType object instead of a string since v1.4.0