Commit b0155938 authored by Hubert Boma Manilla's avatar Hubert Boma Manilla
Browse files

Bug 1636804 - Remove quotes and escaping for header sections r=nchevobbe a=pascalc

Differential Revision: https://phabricator.services.mozilla.com/D76111
parent 4d12fa13
......@@ -462,6 +462,7 @@ class HeadersPanel extends Component {
provider: HeadersProvider,
selectPath: this.getTargetHeaderPath,
defaultSelectFirstNode: false,
useQuotes: false,
},
header: this.getHeadersTitle(responseHeaders, RESPONSE_HEADERS),
buttons: this.renderRawHeadersBtn(
......@@ -488,6 +489,7 @@ class HeadersPanel extends Component {
provider: HeadersProvider,
selectPath: this.getTargetHeaderPath,
defaultSelectFirstNode: false,
useQuotes: false,
},
header: this.getHeadersTitle(requestHeaders, REQUEST_HEADERS),
buttons: this.renderRawHeadersBtn(
......@@ -520,6 +522,7 @@ class HeadersPanel extends Component {
provider: HeadersProvider,
selectPath: this.getTargetHeaderPath,
defaultSelectFirstNode: false,
useQuotes: false,
},
header: this.getHeadersTitle(
uploadHeaders,
......
......@@ -62,6 +62,7 @@ class PropertiesView extends Component {
selectPath: PropTypes.func,
mode: PropTypes.symbol,
defaultSelectFirstNode: PropTypes.bool,
useQuotes: PropTypes.bool,
};
}
......@@ -71,6 +72,7 @@ class PropertiesView extends Component {
enableFilter: true,
expandableStrings: false,
cropLimit: 1024,
useQuotes: true,
};
}
......@@ -196,6 +198,7 @@ class PropertiesView extends Component {
selectPath,
cropLimit,
defaultSelectFirstNode,
useQuotes,
} = this.props;
return div(
......@@ -210,7 +213,7 @@ class PropertiesView extends Component {
decorator,
enableInput,
expandableStrings,
useQuotes: true,
useQuotes,
expandedNodes:
expandedNodes ||
TreeViewClass.getExpandedNodes(object, {
......
......@@ -59,7 +59,7 @@ add_task(async function() {
);
is(
values[values.length - 2].textContent,
'"application/x-www-form-urlencoded"',
"application/x-www-form-urlencoded",
"The first request header value was incorrect."
);
is(
......@@ -69,7 +69,7 @@ add_task(async function() {
);
is(
values[values.length - 1].textContent,
'"hello world!"',
"hello world!",
"The second request header value was incorrect."
);
......
......@@ -208,7 +208,7 @@ add_task(async function() {
);
is(
responseScope[header.index - 1].querySelector(".objectBox").innerHTML,
`"${header.value}"`,
`${header.value}`,
`The ${header.pos} response header value was incorrect.`
);
});
......@@ -247,7 +247,7 @@ add_task(async function() {
);
is(
requestScope[header.index - 1].querySelector(".objectBox").innerHTML,
`"${header.value}"`,
`${header.value}`,
`The ${header.pos} request header value was incorrect.`
);
});
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment