bug 1507428: webdriver: fix incorrect Content-Type header; r=whimboo

The Content-Type header contains the correct MIME type, but the
charset option is "utf8" and invalid: it should be "utf-8".

Differential Revision: https://phabricator.services.mozilla.com/D12116

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Andreas Tolfsen 2018-11-16 19:17:37 +00:00
Родитель 78cd9dab3f
Коммит 24803f5943
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -226,7 +226,7 @@ impl<U: WebDriverExtensionRoute + 'static> Service for HttpHandler<U> {
let response = Response::builder()
.status(status)
.header(http::header::CONTENT_TYPE, "application/json; charset=utf8")
.header(http::header::CONTENT_TYPE, "application/json; charset=utf-8")
.header(http::header::CACHE_CONTROL, "no-cache")
.body(resp_body.into())
.unwrap();