requests raises an error when the useragent starts with \n
This commit is contained in:
@@ -2,9 +2,7 @@ from .__version__ import __version__
|
|||||||
|
|
||||||
__all__ = ['AGENT', 'SUMMARY', 'AUTH', 'CONTROLS', 'HELP']
|
__all__ = ['AGENT', 'SUMMARY', 'AUTH', 'CONTROLS', 'HELP']
|
||||||
|
|
||||||
AGENT = """
|
AGENT = "desktop:https://github.com/michael-lazar/rtv:{} (by /u/civilization_phaze_3)".format(__version__)
|
||||||
desktop:https://github.com/michael-lazar/rtv:{} (by /u/civilization_phaze_3)
|
|
||||||
""".format(__version__)
|
|
||||||
|
|
||||||
SUMMARY = """
|
SUMMARY = """
|
||||||
Reddit Terminal Viewer is a lightweight browser for www.reddit.com built into a
|
Reddit Terminal Viewer is a lightweight browser for www.reddit.com built into a
|
||||||
@@ -42,7 +40,7 @@ Subreddit Mode
|
|||||||
Submission Mode
|
Submission Mode
|
||||||
`LEFT` or `h` : Return to subreddit mode
|
`LEFT` or `h` : Return to subreddit mode
|
||||||
`RIGHT` or `l` : Fold the selected comment, or load additional comments
|
`RIGHT` or `l` : Fold the selected comment, or load additional comments
|
||||||
`c` : Comment/reply on the selected item
|
`c` : Comment/reply on the selected item
|
||||||
"""
|
"""
|
||||||
|
|
||||||
COMMENT_FILE = """
|
COMMENT_FILE = """
|
||||||
|
|||||||
Reference in New Issue
Block a user