]> git.basschouten.com Git - openhab-addons.git/commit
[http] Support all 2xx response codes (#12594)
authorCorubba <97832352+corubba@users.noreply.github.com>
Sun, 8 May 2022 08:53:20 +0000 (10:53 +0200)
committerGitHub <noreply@github.com>
Sun, 8 May 2022 08:53:20 +0000 (10:53 +0200)
commit961696ead6f718640424e517174e44d2da0017b0
treeb442f7029a2b4e156bec797a49db9e9c36d1060b
parent4e56b9b734e4f994a34167ca88e9694ba6f5ce83
[http] Support all 2xx response codes (#12594)

* [http] Add tests
* [http] Treat all success codes as such
* All 2xx http codes mean success, so treat them the same way 200 is.

Fixes #11369

Signed-off-by: Corubba Smith <corubba@gmx.de>
bundles/org.openhab.binding.http/src/main/java/org/openhab/binding/http/internal/http/HttpResponseListener.java
bundles/org.openhab.binding.http/src/test/java/org/openhab/binding/http/internal/http/HttpResponseListenerTest.java [new file with mode: 0644]
bundles/org.openhab.binding.http/src/test/resources/simplelogger.properties [new file with mode: 0644]