mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2024-11-21 16:55:38 +03:00
[bugfix] handle HEAD requests more elegantly (#2055)
Signed-off-by: kim <grufwub@gmail.com>
This commit is contained in:
parent
cec29e2a8d
commit
24516b84c2
1 changed files with 1 additions and 0 deletions
|
@ -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
|
||||
engine := gin.New()
|
||||
engine.MaxMultipartMemory = maxMultipartMemory
|
||||
engine.HandleMethodNotAllowed = true
|
||||
|
||||
// set up IP forwarding via x-forward-* headers.
|
||||
trustedProxies := config.GetTrustedProxies()
|
||||
|
|
Loading…
Reference in a new issue