mirror of
https://github.com/rancher/norman.git
synced 2025-09-25 14:46:57 +00:00
Fallback to custom decoder
This commit is contained in:
@@ -241,8 +241,8 @@ func (s *Store) realWatch(apiContext *types.APIContext, schema *types.Schema, op
|
||||
}
|
||||
|
||||
framer := json.Framer.NewFrameReader(body)
|
||||
decoder := streaming.NewDecoder(framer, unstructured.UnstructuredJSONScheme)
|
||||
watcher := watch.NewStreamWatcher(restclientwatch.NewDecoder(decoder, unstructured.UnstructuredJSONScheme))
|
||||
decoder := streaming.NewDecoder(framer, &unstructuredDecoder{})
|
||||
watcher := watch.NewStreamWatcher(restclientwatch.NewDecoder(decoder, &unstructuredDecoder{}))
|
||||
|
||||
go func() {
|
||||
<-apiContext.Request.Context().Done()
|
||||
|
Reference in New Issue
Block a user