1
0
mirror of https://github.com/rancher/norman.git synced 2025-09-24 20:48:18 +00:00

Fallback to custom decoder

This commit is contained in:
Darren Shepherd
2018-07-31 16:30:59 -07:00
parent 5a8ca5f1e5
commit 9620967ad5

View File

@@ -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()