summaryrefslogtreecommitdiff
path: root/src/http_protocol.cc
AgeCommit message (Collapse)Author
2017-08-09Improve handling of non-utf8 or empty text http message bodyJoel Klinghed
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.
2017-08-07Make sure HttpProtocol doesn't print content twice in case of errorJoel Klinghed
If write() was called with last = true and then error was called you would end up with the data written twice
2017-08-07fixup! Protocol related fixesJoel Klinghed
Reset before writing request/response statusline
2017-08-07Protocol related fixesJoel Klinghed
full() clears text so protocols that doesn't implement append() doesn't end up with repeats. precaching works now because of correct want calculation. if a package is updated while being active in a worker the package is requeud when done instead of forgotten
2017-08-06Add protools, used for getting content out of packagesJoel Klinghed
Only HTTP protocol implemented yet, but with gzip, deflate and bzip2 suport