Skip to content

Multitrans: accept initial 200 OK response in addition to 401#2186

Open
neqq3 wants to merge 1 commit intoAlexxIT:masterfrom
neqq3:multitrans-accept-200
Open

Multitrans: accept initial 200 OK response in addition to 401#2186
neqq3 wants to merge 1 commit intoAlexxIT:masterfrom
neqq3:multitrans-accept-200

Conversation

@neqq3
Copy link
Copy Markdown

@neqq3 neqq3 commented Mar 29, 2026

Fixes #2185

Some TP-Link IPC (China mainland version) firmware returns 200 OK on the initial MULTITRANS request instead of 401 Unauthorized with a Digest challenge.

Current multitrans logic expects the first response to be 401, so these devices fail with:

multitrans: expected 401, got 200 OK

This patch keeps the existing flow for cameras that return 401, and adds support for cameras that return 200 OK directly by continuing with the returned session.

Tested on:

  • TP-Link TL-IPC44AW-COLOR 4.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Multitrans doesn't work on some TP-Link IPC firmware that returns 200 OK instead of 401

1 participant