Skip to content

Fix bug introduced in #400 in method matching for AsyncCallbackJsonWebHandler#405

Merged
mathieucarbou merged 1 commit intomainfrom
fix-400
Mar 14, 2026
Merged

Fix bug introduced in #400 in method matching for AsyncCallbackJsonWebHandler#405
mathieucarbou merged 1 commit intomainfrom
fix-400

Conversation

@mathieucarbou
Copy link
Copy Markdown
Member

@mathieucarbou mathieucarbou commented Mar 14, 2026

Fix #404

Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Fixes a regression from #400 affecting HTTP method matching in AsyncCallbackJsonWebHandler by ensuring the handler’s _method mask is set to the intended set of HTTP verbs.

Changes:

  • Removes the previously defined JsonHandlerMethods constant used for method masks.
  • Inlines the HTTP method bitmask directly into both AsyncCallbackJsonWebHandler constructors (ArduinoJson v6 and non-v6 branches).

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread src/AsyncJson.cpp Outdated
@mathieucarbou mathieucarbou added the Type: Bug Something isn't working label Mar 14, 2026
@mathieucarbou
Copy link
Copy Markdown
Member Author

@willmmiles : FYI.

@mathieucarbou mathieucarbou merged commit 36c7542 into main Mar 14, 2026
33 of 34 checks passed
@mathieucarbou mathieucarbou deleted the fix-400 branch March 14, 2026 11:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Status: Pending Merge Type: Bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Since 3.10.1 Any AsyncCallbackJsonWebHandler Post Handler is returning 404

2 participants