diff --git a/generate.sh b/generate.sh index 7b2a8c54..1e237863 100755 --- a/generate.sh +++ b/generate.sh @@ -32,4 +32,7 @@ find vrchatapi -type f -exec sed -i '/VRChat API Banner/d' {} \; patch ./vrchatapi/rest.py < ./patches/cookiejar.patch # Make 2fa required error readable -patch ./vrchatapi/rest.py < ./patches/error_2fa_verify_readable.patch \ No newline at end of file +patch ./vrchatapi/rest.py < ./patches/error_2fa_verify_readable.patch + +# Add common symbols to safe path parameter symbols +patch ./vrchatapi/configuration.py < ./patches/safe_param_symbols.patch.patch \ No newline at end of file diff --git a/patches/safe_param_symbols.patch b/patches/safe_param_symbols.patch new file mode 100644 index 00000000..2be46e5e --- /dev/null +++ b/patches/safe_param_symbols.patch @@ -0,0 +1,13 @@ +diff --git a/vrchatapi/configuration.py b/vrchatapi/configuration.py +index 4d594f94..70354d29 100644 +--- a/vrchatapi/configuration.py ++++ b/vrchatapi/configuration.py +@@ -221,7 +221,7 @@ conf = vrchatapi.Configuration( + self.proxy_headers = None + """Proxy headers + """ +- self.safe_chars_for_path_param = '' ++ self.safe_chars_for_path_param = '~()' + """Safe chars for path_param + """ + self.retries = None diff --git a/vrchatapi/configuration.py b/vrchatapi/configuration.py index 4d594f94..70354d29 100644 --- a/vrchatapi/configuration.py +++ b/vrchatapi/configuration.py @@ -221,7 +221,7 @@ def __init__(self, host=None, self.proxy_headers = None """Proxy headers """ - self.safe_chars_for_path_param = '' + self.safe_chars_for_path_param = '~()' """Safe chars for path_param """ self.retries = None