~bigbes/core-go

76279c9b1c0fc5c90bf97360d4a101fa8460ee45 — Simon Ser 4 years ago 4825077
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
1 files changed, 1 insertions(+), 1 deletions(-)

M auth/middleware.go
M auth/middleware.go => auth/middleware.go +1 -1
@@ 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,