Skip to content

Conversation

@arekm
Copy link
Contributor

@arekm arekm commented Jun 8, 2025

Also decode POST arguments, so if you set option like ScalerCrop fro web UI you will get it correctly applied.
For example set via web ui: ScalerCrop to (964,436)/3000x1920

With fix:
util/http/http.c: HTTP8080/5: Request 'POST' '/option' 'device=CAMERA&key=scalercrop&value=(964%2C436)%2F3000x1920' device/libcamera/options.cc: CAMERA: Configuring option 'ScalerCrop' (0000001b, type=9) = (964, 436)/3000x1920

Fixes #115

@arekm arekm force-pushed the decode-post branch 2 times, most recently from f5024da to 1856a4c Compare June 8, 2025 19:48
@ayufan ayufan changed the title Decode POST parameters before applying options. http: decode POST parameters before applying options. Jul 2, 2025
@ayufan ayufan merged commit 5e68944 into ayufan:main Jul 2, 2025
8 of 10 checks passed
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.

Values from POST at /option URL are not decoded

2 participants