Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Avoid HEAD request #908

Merged
merged 1 commit into from
Feb 22, 2021
Merged

Avoid HEAD request #908

merged 1 commit into from
Feb 22, 2021

Conversation

ghys
Copy link
Member

@ghys ghys commented Feb 14, 2021

Fix #888.
openHAB Cloud doesn't seem to support forwarding HTTP HEAD requests.
So do a GET /rest/sitemaps instead to determine whether the user operations are
allowed anonymously, which is a little bit of overhead but since it's only the list
of sitemaps it should be acceptable in most cases.

Signed-off-by: Yannick Schaus [email protected]

Fix #888.
openHAB Cloud doesn't seem to support forwarding HTTP HEAD requests.
So do a GET /rest/sitemaps instead to determine whether the user operations are
allowed anonymously, which is a little bit of overhead but since it's only the _list_
of sitemaps it should be acceptable in most cases.

Signed-off-by: Yannick Schaus <[email protected]>
@ghys ghys requested a review from a team as a code owner February 14, 2021 17:43
@ghys ghys merged commit 1449351 into main Feb 22, 2021
@ghys ghys added bug Something isn't working main ui Main UI labels Apr 1, 2021
@ghys ghys added this to the 3.1 milestone Apr 1, 2021
@ghys ghys added the patch A PR that has been cherry-picked to a patch release branch label Apr 18, 2021
ghys added a commit that referenced this pull request Apr 18, 2021
Fix #888.
openHAB Cloud doesn't seem to support forwarding HTTP HEAD requests.
So do a GET /rest/sitemaps instead to determine whether the user operations are
allowed anonymously, which is a little bit of overhead but since it's only the _list_
of sitemaps it should be acceptable in most cases.

Signed-off-by: Yannick Schaus <[email protected]>
@ghys ghys deleted the no-head-request branch June 22, 2022 13:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working main ui Main UI patch A PR that has been cherry-picked to a patch release branch
Projects
None yet
Development

Successfully merging this pull request may close these issues.

OH3: Unsupported request method HEAD
1 participant