Repository navigation
Conversation
Snipe-IT 8.8.4 answers 400 to any Host header other than the host of its
APP_URL, so the internal probe, which uses the IP address of the server,
failed. A probe can now set host, which it sends in the Host header. A
redirect to the same scheme, host and port keeps it, and a redirect to
another host does not.
The snipe-it check of the example configuration tries /health instead
of /login, and its internal probe sends snipe-it.{domain}. The README
and the changelog describe the setting.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Pull Request
By submitting this pull request, I confirm that:
(Tick each box that applies, e.g.
[x].)develop, and makes one change. (The release:developintomaster.)CHANGELOG.md. (Moved under this release's heading.)python -m ruff check .,python -m ruff format --check .andpython -m mypypass.[[check]]table with--dry-runagainst a real copy, and named the version below.🎯 What does this pull request do?
Merges
developintomasterwith a new probe setting,host. Snipe-IT 8.8.4 answers400to anyHostheader other than the host of itsAPP_URL, so an internal probe by IP address orlocalhostfailed. A probe can now name the host that it sends.🛠️ How does it do it?
Probehas ahostfield, and a probe table acceptshost. It can use the names from[hosts]. An empty value, or a value with a scheme, a path or a space, is a config error.fetchsendshostas an unredirectedHostheader. A redirect to the same scheme, host and port gets it again, and a redirect to another host does not, the same rule as for thetokenandAuthorizationheaders.snipe-itcheck of the example configuration tries/healthinstead of/login, and its internal probe sendshost = "snipe-it.{domain}".tests/test_http.pyandtests/test_config.py. 8 of them failed before the change.__version__is2026-11-22, and the changelog entries are under this pull request.Verified: 152 tests, ruff, ruff format and mypy pass locally on Python 3.14 in WSL. On
develop(18c005c), every job of the Tests workflow passed (run 44904474262). A realsnipe-itcheck withhostgave200from both probes against Snipe-IT 8.8.4-alpine with--dry-run.📝 Documentation changes
hostrow in the probe settings, and a troubleshooting row for an internal probe that returns400.🤖 Generated with Claude Code