mirror of https://git.sr.ht/~sircmpwn/core-go
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:
parent
4825077296
commit
76279c9b1c
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue