summaryrefslogtreecommitdiff
path: root/src/protocols.hh
diff options
context:
space:
mode:
authorJoel Klinghed <the_jk@yahoo.com>2017-08-09 20:54:57 +0200
committerJoel Klinghed <the_jk@yahoo.com>2017-08-09 20:54:57 +0200
commit582cf3f5efab85a6316cb5936d529ffa78cb3f4e (patch)
tree9803872e63e929226bb7a63c58a3fbc884b9b1a2 /src/protocols.hh
parentb8112a1304e36dc8a308d2b09d5cd49c9271b2cc (diff)
Improve handling of non-utf8 or empty text http message body
If http message body is expected to be text and turns out to not be valid UTF-8 we fallback to using hex output. Two bugs in that code: 1) An empty message body was considered invalid UTF-8 as it didn't have any valid UTF-8 characters ... 2) When restarting the output all the content already written to text was appended, including headers.
Diffstat (limited to 'src/protocols.hh')
0 files changed, 0 insertions, 0 deletions