Fix json struct tag

Found via `go vet`:

    auth/middleware.go:259:2: struct field tag `json:"oauth_client_id",omit-empty` not compatible with reflect.StructTag.Get: key:"value" pairs not separated by spaces
This commit is contained in:
Simon Ser 2021-08-26 10:04:06 +00:00 committed by Drew DeVault
parent 4825077296
commit 76279c9b1c
1 changed files with 1 additions and 1 deletions

View File

@ -256,7 +256,7 @@ type InternalAuth struct {
NodeID string `json:"node_id"`
// Only used by specific meta.sr.ht routes
OAuthClientUUID string `json:"oauth_client_id",omit-empty`
OAuthClientUUID string `json:"oauth_client_id,omit-empty"`
}
func internalAuth(internalNet []*net.IPNet, payload []byte,