Commit 1e68a2d
committed
report_progress: add User-Agent header (Cloudflare WAF was blocking)
The Cloudflare WAF in front of githubusers.archivebox.io was returning
HTTP 403 error 1010 to urllib's default User-Agent. Sending a clear
User-Agent lets the POST through. Without this every report_progress
call was silently 403'd by Cloudflare before reaching the Worker.1 parent c7cba7e commit 1e68a2d
2 files changed
Lines changed: 16 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
188 | 188 | | |
189 | 189 | | |
190 | 190 | | |
191 | | - | |
192 | | - | |
193 | | - | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
194 | 195 | | |
195 | | - | |
| 196 | + | |
196 | 197 | | |
197 | 198 | | |
198 | 199 | | |
| |||
205 | 206 | | |
206 | 207 | | |
207 | 208 | | |
208 | | - | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
209 | 214 | | |
210 | 215 | | |
211 | 216 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2395 | 2395 | | |
2396 | 2396 | | |
2397 | 2397 | | |
| 2398 | + | |
| 2399 | + | |
| 2400 | + | |
| 2401 | + | |
| 2402 | + | |
| 2403 | + | |
2398 | 2404 | | |
2399 | 2405 | | |
2400 | 2406 | | |
| |||
0 commit comments