knotserver: minor fixups to xrpc APIs #369

merged
opened by oppi.li targeting master from push-mqkxnymrqmzz
Changed files
+3 -3
knotserver
+1 -1
knotserver/xrpc/router.go
··· 134 134 135 135 func GenericError(err error) XrpcError { 136 136 return NewXrpcError( 137 - WithTag("InvalidRepo"), 137 + WithTag("Generic"), 138 138 WithError(err), 139 139 ) 140 140 }
+2 -2
knotserver/xrpc/set_default_branch.go
··· 23 23 writeError(w, e, http.StatusBadRequest) 24 24 } 25 25 26 - actorDid, ok := r.Context().Value(ActorDid).(*syntax.DID) 26 + actorDid, ok := r.Context().Value(ActorDid).(syntax.DID) 27 27 if !ok { 28 28 fail(MissingActorDidError) 29 29 return ··· 83 83 return 84 84 } 85 85 86 - w.WriteHeader(http.StatusNoContent) 86 + w.WriteHeader(http.StatusOK) 87 87 }