Commit 4e02204
committed
Handle missing arguments
Without this, if all arguments are missing and `HTTP_X_PROXY_URL` isn't set, the server throws an error (could happen if /proxy.php is spidered for example).
This code handles that edge case.
Probably could use a 400 instead of a 404 but this at least prevents the error message.1 parent 5ab7e40 commit 4e02204
1 file changed
+16
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
64 | 64 | | |
65 | 65 | | |
66 | 66 | | |
67 | | - | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
68 | 83 | | |
69 | 84 | | |
70 | 85 | | |
| |||
0 commit comments