Changeset 1c76ea7 in mod_gnutls
- Timestamp:
- Jan 21, 2020, 2:21:16 PM (3 years ago)
- Branches:
- asyncio, main, master, proxy-ticket
- Children:
- 4a22ee6
- Parents:
- 6fa6095
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
test/mgstest/tests.py
r6fa6095 r1c76ea7 213 213 self.method = method 214 214 self.path = path 215 self.body = body 215 self.body = body.encode('utf-8') if body else None 216 216 self.headers = headers 217 217 self.expect = expect … … 357 357 for name, value in self.headers.items(): 358 358 req = req + f'{name}: {value}\r\n' 359 req = req + f'\r\n'359 req = req.encode('utf-8') + b'\r\n' 360 360 if self.body: 361 361 req = req + self.body … … 367 367 bufsize=0) 368 368 try: 369 outs, errs = proc.communicate(input=req.encode(), 370 timeout=timeout) 369 outs, errs = proc.communicate(input=req, timeout=timeout) 371 370 except TimeoutExpired: 372 371 proc.kill()
Note: See TracChangeset
for help on using the changeset viewer.