Fix link to anticache docs in mitmweb (#4126)

This commit is contained in:
rugk 2020-08-06 22:04:33 +02:00 committed by GitHub
parent b52e093ae2
commit 9e4f7d47f7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 6 additions and 5 deletions

View File

@ -3,6 +3,7 @@ Unreleased: mitmproxy next
** Full Changelog **
* Add MsgPack content viewer (@tasn)
* Fix links to anticache docs in mitmweb and use HTTPS for links to documentation (@rugk)
* --- TODO: add new PRs above this line ---

View File

@ -46,7 +46,7 @@ exports[`OptionMenu Component should render correctly 1`] = `
/>
Strip cache headers
<a
href="http://docs.mitmproxy.org/en/stable/features/anticache.html"
href="https://docs.mitmproxy.org/stable/overview-features/#anticache"
target="_blank"
>
<i

View File

@ -2,7 +2,7 @@
exports[`DocsLink Component should be able to be rendered with children nodes 1`] = `
<a
href="http://docs.mitmproxy.org/en/stable/bar"
href="https://docs.mitmproxy.org/stable/bar"
target="_blank"
>
foo
@ -11,7 +11,7 @@ exports[`DocsLink Component should be able to be rendered with children nodes 1`
exports[`DocsLink Component should be able to be rendered without children nodes 1`] = `
<a
href="http://docs.mitmproxy.org/en/stable/bar"
href="https://docs.mitmproxy.org/stable/bar"
target="_blank"
>
<i

View File

@ -25,7 +25,7 @@ function OptionMenu({ openOptions }) {
<div className="menu-group">
<div className="menu-content">
<SettingsToggle setting="anticache">
Strip cache headers <DocsLink resource="features/anticache.html"/>
Strip cache headers <DocsLink resource="overview-features/#anticache"/>
</SettingsToggle>
<SettingsToggle setting="showhost">
Use host header for display

View File

@ -6,7 +6,7 @@ DocsLink.propTypes = {
}
export default function DocsLink({ children, resource }) {
let url = `http://docs.mitmproxy.org/en/stable/${resource}`
let url = `https://docs.mitmproxy.org/stable/${resource}`
return (
<a target="_blank" href={url}>
{children || <i className="fa fa-question-circle"></i>}