Show More
@@ -97,6 +97,7 b' class httppeer(wireproto.wirepeer):' | |||||
97 | self.ui.debug("sending %s command\n" % cmd) |
|
97 | self.ui.debug("sending %s command\n" % cmd) | |
98 | q = [('cmd', cmd)] |
|
98 | q = [('cmd', cmd)] | |
99 | headersize = 0 |
|
99 | headersize = 0 | |
|
100 | if True: | |||
100 | if len(args) > 0: |
|
101 | if len(args) > 0: | |
101 | httpheader = self.capable('httpheader') |
|
102 | httpheader = self.capable('httpheader') | |
102 | if httpheader: |
|
103 | if httpheader: | |
@@ -111,7 +112,8 b' class httppeer(wireproto.wirepeer):' | |||||
111 | headernum += 1 |
|
112 | headernum += 1 | |
112 | header = headerfmt % str(headernum) |
|
113 | header = headerfmt % str(headernum) | |
113 | headers[header] = encargs[i:i + contentlen] |
|
114 | headers[header] = encargs[i:i + contentlen] | |
114 | varyheaders = [headerfmt % str(h) for h in range(1, headernum + 1)] |
|
115 | varyheaders = [ | |
|
116 | headerfmt % str(h) for h in range(1, headernum + 1)] | |||
115 | headers['Vary'] = ','.join(varyheaders) |
|
117 | headers['Vary'] = ','.join(varyheaders) | |
116 | else: |
|
118 | else: | |
117 | q += sorted(args.items()) |
|
119 | q += sorted(args.items()) |
General Comments 0
You need to be logged in to leave comments.
Login now