libbrillo: Conditionally quote boundary field in Content-Type

While technically it is not incorrect to do this, there are
implementations of HTTP servers that don't handle this properly.
A specific example is the server that handles uploads of crash reports.
I've contacted them about fixing it on their end as well...but we might
as well change it on ours too.

BUG=None
TEST=Verified uploads to crash server work with this change

Change-Id: I143a0823e8b22e67ad5b54e8e86c0378ad227e10
Reviewed-on: https://chromium-review.googlesource.com/1584418
Commit-Ready: Jeffrey Kardatzke <jkardatzke@google.com>
Tested-by: Jeffrey Kardatzke <jkardatzke@google.com>
Reviewed-by: Tim Zheng <timzheng@chromium.org>
Cr-Mirrored-From: https://chromium.googlesource.com/chromiumos/platform2
Cr-Mirrored-Commit: 33b6f16e53995b912b8096c4068eafc3753de730
2 files changed
tree: fa83d690631847eb4d1a87530659362c806fca5a
  1. brillo/
  2. install_attributes/
  3. policy/
  4. BUILD.gn
  5. libpolicy.ver
  6. OWNERS
  7. PRESUBMIT.cfg
  8. README.md
  9. testrunner.cc
README.md

libbrillo: platform utility library

libbrillo is a shared library meant to hold common utility code that we deem useful for platform projects. It supplements the functionality provided by libbase/libchrome since that project, by design, only holds functionality that Chromium (the browser) needs. As a result, this tends to be more OS-centric code.

AOSP Usage

This project is also used by Update Engine which is maintained in AOSP. However, AOSP doesn't use this codebase directly, it maintains its own libbrillo fork.

To help keep the projects in sync, we have a gsubtree set up on our GoB: https://chromium.googlesource.com/chromiumos/platform2/libbrillo/

This allows AOSP to cherry pick or merge changes directly back into their fork.