mirror of
https://github.com/Grasscutters/mitmproxy.git
synced 2024-11-22 15:37:45 +00:00
Fix link to anticache docs in mitmweb (#4126)
This commit is contained in:
parent
b52e093ae2
commit
9e4f7d47f7
@ -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 ---
|
||||
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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>}
|
||||
|
Loading…
Reference in New Issue
Block a user