Skip to content

Commit 3795aff

Browse files
authored
Add common symbols to safe param symbols (#14)
* Add common symbols to safe param symbols Closes #13 * Add #13 patch to generate.sh
1 parent e421f0b commit 3795aff

File tree

3 files changed

+18
-2
lines changed

3 files changed

+18
-2
lines changed

generate.sh

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,4 +32,7 @@ find vrchatapi -type f -exec sed -i '/VRChat API Banner/d' {} \;
3232
patch ./vrchatapi/rest.py < ./patches/cookiejar.patch
3333

3434
# Make 2fa required error readable
35-
patch ./vrchatapi/rest.py < ./patches/error_2fa_verify_readable.patch
35+
patch ./vrchatapi/rest.py < ./patches/error_2fa_verify_readable.patch
36+
37+
# Add common symbols to safe path parameter symbols
38+
patch ./vrchatapi/configuration.py < ./patches/safe_param_symbols.patch.patch

patches/safe_param_symbols.patch

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
diff --git a/vrchatapi/configuration.py b/vrchatapi/configuration.py
2+
index 4d594f94..70354d29 100644
3+
--- a/vrchatapi/configuration.py
4+
+++ b/vrchatapi/configuration.py
5+
@@ -221,7 +221,7 @@ conf = vrchatapi.Configuration(
6+
self.proxy_headers = None
7+
"""Proxy headers
8+
"""
9+
- self.safe_chars_for_path_param = ''
10+
+ self.safe_chars_for_path_param = '~()'
11+
"""Safe chars for path_param
12+
"""
13+
self.retries = None

vrchatapi/configuration.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,7 @@ def __init__(self, host=None,
221221
self.proxy_headers = None
222222
"""Proxy headers
223223
"""
224-
self.safe_chars_for_path_param = ''
224+
self.safe_chars_for_path_param = '~()'
225225
"""Safe chars for path_param
226226
"""
227227
self.retries = None

0 commit comments

Comments
 (0)