Commit 879222f
fix(live_streaming): add trailing slash to create_bucket URL for correct auth signature
Fixed authentication failure for create_bucket by adding a trailing slash to the URL.
This ensures that urlparse().path returns '/' instead of an empty string, which is
consistent with other working methods like bind_push_domain that have explicit '/' in
their URLs (e.g., '/?pushDomain').
Without the trailing slash:
- URL: https://bucket.endpoint
- parsed.path: '' (empty) → becomes '/' via fallback
- This caused authentication signature mismatch
With the trailing slash:
- URL: https://bucket.endpoint/
- parsed.path: '/' (explicit)
- Signature generation matches other working methods
Note: _build_bucket_url() itself is not modified because it's also used by
bind_push_domain which constructs URLs like 'https://bucket.endpoint/?pushDomain'.
Adding a trailing slash there would create 'https://bucket.endpoint//?pushDomain'
with double slashes.
Generated with [codeagent](https://github.com/qbox/codeagent)
Co-authored-by: callmefisher <[email protected]>1 parent cb4d68c commit 879222f
1 file changed
+3
-26
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
86 | 86 | | |
87 | 87 | | |
88 | 88 | | |
89 | | - | |
90 | | - | |
91 | | - | |
92 | | - | |
93 | | - | |
94 | | - | |
95 | | - | |
96 | | - | |
97 | | - | |
98 | | - | |
99 | | - | |
100 | | - | |
101 | | - | |
| 89 | + | |
| 90 | + | |
102 | 91 | | |
103 | 92 | | |
104 | 93 | | |
| |||
138 | 127 | | |
139 | 128 | | |
140 | 129 | | |
141 | | - | |
142 | | - | |
143 | | - | |
144 | | - | |
145 | | - | |
146 | | - | |
147 | | - | |
148 | | - | |
149 | | - | |
150 | | - | |
151 | | - | |
152 | | - | |
153 | | - | |
| 130 | + | |
154 | 131 | | |
155 | 132 | | |
156 | 133 | | |
| |||
0 commit comments