summaryrefslogtreecommitdiff
path: root/worker/sync_worker.go
diff options
context:
space:
mode:
Diffstat (limited to 'worker/sync_worker.go')
-rwxr-xr-xworker/sync_worker.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/worker/sync_worker.go b/worker/sync_worker.go
index e3e85ba6..6ece0ad7 100755
--- a/worker/sync_worker.go
+++ b/worker/sync_worker.go
@@ -162,6 +162,7 @@ func (tw *SyncWorkerImpl) execPayload(p *payload.Payload) (*payload.Payload, err
// can be 0 here
fr.WriteVersion(fr.Header(), frame.VERSION_1)
+ fr.WriteFlags(fr.Header(), p.Codec)
// obtain a buffer
buf := tw.get()
@@ -207,6 +208,7 @@ func (tw *SyncWorkerImpl) execPayload(p *payload.Payload) (*payload.Payload, err
}
pld := &payload.Payload{
+ Codec: flags,
Body: make([]byte, len(frameR.Payload()[options[0]:])),
Context: make([]byte, len(frameR.Payload()[:options[0]])),
}