Commit 1cbd682
Send response code 400 when requesting a non existing method (#22334)
* fixed 200 OK BUG
* regex for error message matching
* throwing an instace of HttpCodeException
* Update core/Http/BadRequestException.php
Co-authored-by: Michal Kleiner <mk@011.nz>
* Update core/API/Proxy.php
Co-authored-by: Michal Kleiner <mk@011.nz>
* Apply suggestions from code review
---------
Co-authored-by: Michal Kleiner <mk@011.nz>
Co-authored-by: Stefan Giehl <stefan@matomo.org>1 parent bebbd31 commit 1cbd682
2 files changed
Lines changed: 3 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| 13 | + | |
13 | 14 | | |
14 | 15 | | |
15 | 16 | | |
| |||
615 | 616 | | |
616 | 617 | | |
617 | 618 | | |
618 | | - | |
| 619 | + | |
619 | 620 | | |
620 | 621 | | |
621 | 622 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
16 | | - | |
| 16 | + | |
17 | 17 | | |
18 | 18 | | |
0 commit comments