mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-10-29 08:32:24 -05:00
[bug] respect X-Robots-Tag and robots.txt on api/v1/instance and nodeinfo (#3756)
* feat: check X-Robots-Tag when accessing /api/v1/instance or /nodeinfo endpoints respect X-Robots-Tag * chore: go fmt ./... * Check robots.txt as well, add tests --------- Co-authored-by: tobi <tobi.smethurst@protonmail.com>
This commit is contained in:
parent
2c95fd4115
commit
d0de3ad492
20 changed files with 1404 additions and 24 deletions
5
vendor/modules.txt
vendored
5
vendor/modules.txt
vendored
|
|
@ -412,6 +412,8 @@ github.com/jackc/puddle/v2/internal/genstack
|
|||
# github.com/jessevdk/go-flags v1.5.0
|
||||
## explicit; go 1.15
|
||||
github.com/jessevdk/go-flags
|
||||
# github.com/jimsmart/grobotstxt v1.0.3
|
||||
## explicit; go 1.14
|
||||
# github.com/jinzhu/inflection v1.0.0
|
||||
## explicit
|
||||
github.com/jinzhu/inflection
|
||||
|
|
@ -831,6 +833,9 @@ github.com/tdewolff/parse/v2/strconv
|
|||
# github.com/technologize/otel-go-contrib v1.1.1
|
||||
## explicit; go 1.17
|
||||
github.com/technologize/otel-go-contrib/otelginmetrics
|
||||
# github.com/temoto/robotstxt v1.1.2
|
||||
## explicit; go 1.11
|
||||
github.com/temoto/robotstxt
|
||||
# github.com/tetratelabs/wazero v1.8.2
|
||||
## explicit; go 1.21
|
||||
github.com/tetratelabs/wazero
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue