UNIQUECHAN not defined. write to COWRIECHAN

This commit is contained in:
Michel Oosterhof
2018-06-18 18:01:40 +04:00
parent 8f3bf5031e
commit 8c1f385451

View File

@ -241,7 +241,7 @@ class hpclient(object):
def sendfileheader(self, filepath): def sendfileheader(self, filepath):
self.filehandle = open(filepath, 'rb') self.filehandle = open(filepath, 'rb')
fsize = os.stat(filepath).st_size fsize = os.stat(filepath).st_size
headc = strpack8(self.ident) + strpack8(UNIQUECHAN) headc = strpack8(self.ident) + strpack8(COWRIECHAN)
headh = struct.pack('!iB', 5+len(headc)+fsize, OP_PUBLISH) headh = struct.pack('!iB', 5+len(headc)+fsize, OP_PUBLISH)
self.send(headh + headc) self.send(headh + headc)