mirror of
https://github.com/superseriousbusiness/gotosocial
synced 2025-06-05 21:59:39 +02:00
[bugfix] handle HEAD requests more elegantly (#2055)
Signed-off-by: kim <grufwub@gmail.com>
This commit is contained in:
@ -181,6 +181,7 @@ func New(ctx context.Context) (Router, error) {
|
|||||||
// create the actual engine here -- this is the core request routing handler for gts
|
// create the actual engine here -- this is the core request routing handler for gts
|
||||||
engine := gin.New()
|
engine := gin.New()
|
||||||
engine.MaxMultipartMemory = maxMultipartMemory
|
engine.MaxMultipartMemory = maxMultipartMemory
|
||||||
|
engine.HandleMethodNotAllowed = true
|
||||||
|
|
||||||
// set up IP forwarding via x-forward-* headers.
|
// set up IP forwarding via x-forward-* headers.
|
||||||
trustedProxies := config.GetTrustedProxies()
|
trustedProxies := config.GetTrustedProxies()
|
||||||
|
Reference in New Issue
Block a user