webroot: unset existing mime type in web.config (#9092)

This commit is contained in:
alexzorin
2021-11-15 14:35:18 +11:00
committed by GitHub
parent d20e42562c
commit 2746fc572f
2 changed files with 7 additions and 2 deletions
+2 -1
View File
@@ -18,7 +18,8 @@ Certbot adheres to [Semantic Versioning](https://semver.org/).
### Fixed
*
* Fixed an issue on Windows where the `web.config` created by Certbot would sometimes
conflict with preexisting configurations (#9088).
More details about these changes can be found on our GitHub repo.
+5 -1
View File
@@ -31,6 +31,7 @@ _WEB_CONFIG_CONTENT = """\
<configuration>
<system.webServer>
<staticContent>
<remove fileExtension="."/>
<mimeMap fileExtension="." mimeType="text/plain" />
</staticContent>
</system.webServer>
@@ -39,7 +40,10 @@ _WEB_CONFIG_CONTENT = """\
# This list references the hashes of all versions of the web.config files that Certbot could
# have generated during an HTTP-01 challenge. If you modify _WEB_CONFIG_CONTENT, you MUST add
# the new hash in this list.
_WEB_CONFIG_SHA256SUMS = ["20c5ca1bd58fa8ad5f07a2f1be8b7cbb707c20fcb607a8fc8db9393952846a97"]
_WEB_CONFIG_SHA256SUMS = [
"20c5ca1bd58fa8ad5f07a2f1be8b7cbb707c20fcb607a8fc8db9393952846a97",
"8d31383d3a079d2098a9d0c0921f4ab87e708b9868dc3f314d54094c2fe70336"
]
class Authenticator(common.Plugin, interfaces.Authenticator):