Skip to content

Conversation

burbas
Copy link
Contributor

@burbas burbas commented Sep 23, 2025

This pull request introduces a small but important fix to the run_plugins function in src/nova_plugin_handler.erl. Now, when a plugin signals to stop and provides a reply, the status code is properly sent to the requester, ensuring correct HTTP response behavior in this special case.

  • Ensures that when a plugin returns {stop, Reply, Req0, _State0}, the correct status code is sent in the HTTP response by explicitly calling cowboy_req:reply/2.… returned from plugin

closes #339

@burbas burbas self-assigned this Sep 23, 2025
@burbas burbas requested a review from Taure as a code owner September 23, 2025 19:55
@burbas burbas added the bug Something isn't working label Sep 23, 2025
@Taure Taure merged commit 7de2636 into master Sep 24, 2025
9 checks passed
@Taure Taure deleted the fix-http-code-for-plugin branch September 24, 2025 14:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[BUG] Returning {stop, {reply, StatusCode, Body}, Req, State} in plugin does not set the status

2 participants