Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion slack_bolt/oauth/internals.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ def _build_default_install_page_html(url: str) -> str:
</head>
<body>
<h2>Slack App Installation</h2>
<p><a href="{html.escape(url)}"><img alt=""Add to Slack"" height="40" width="139" src="https://platform.slack-edge.com/img/add_to_slack.png" srcset="https://platform.slack-edge.com/img/add_to_slack.png 1x, https://platform.slack-edge.com/img/[email protected] 2x" /></a></p>
<p><a href="{html.escape(url)}"><img alt="Add to Slack" height="40" width="139" src="https://platform.slack-edge.com/img/add_to_slack.png" srcset="https://platform.slack-edge.com/img/add_to_slack.png 1x, https://platform.slack-edge.com/img/[email protected] 2x" /></a></p>
</body>
</html>
""" # noqa: E501
Expand Down
2 changes: 1 addition & 1 deletion tests/adapter_tests_async/test_async_falcon.py
Original file line number Diff line number Diff line change
Expand Up @@ -201,5 +201,5 @@ def test_oauth(self):
response = client.simulate_get("/slack/install")
assert response.status_code == 200
assert response.headers.get("content-type") == "text/html; charset=utf-8"
assert response.headers.get("content-length") == "609"
assert response.headers.get("content-length") == "607"
assert "https://slack.com/oauth/v2/authorize?state=" in response.text
2 changes: 1 addition & 1 deletion tests/adapter_tests_async/test_async_fastapi.py
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ async def endpoint(req: Request):
response = client.get("/slack/install", allow_redirects=False)
assert response.status_code == 200
assert response.headers.get("content-type") == "text/html; charset=utf-8"
assert response.headers.get("content-length") == "609"
assert response.headers.get("content-length") == "607"
assert "https://slack.com/oauth/v2/authorize?state=" in response.text

def test_custom_props(self):
Expand Down
2 changes: 1 addition & 1 deletion tests/adapter_tests_async/test_async_sanic.py
Original file line number Diff line number Diff line change
Expand Up @@ -221,6 +221,6 @@ async def endpoint(req: Request):

# NOTE: Although sanic-testing 0.6 does not have this value,
# Sanic apps properly generate the content-length header
# assert response.headers.get("content-length") == "609"
# assert response.headers.get("content-length") == "607"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🙏


assert "https://slack.com/oauth/v2/authorize?state=" in response.text
2 changes: 1 addition & 1 deletion tests/adapter_tests_async/test_async_starlette.py
Original file line number Diff line number Diff line change
Expand Up @@ -219,5 +219,5 @@ async def endpoint(req: Request):
response = client.get("/slack/install", allow_redirects=False)
assert response.status_code == 200
assert response.headers.get("content-type") == "text/html; charset=utf-8"
assert response.headers.get("content-length") == "609"
assert response.headers.get("content-length") == "607"
assert "https://slack.com/oauth/v2/authorize?state=" in response.text