Skip to content

fix: use copy instead of reference #2073

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Mar 6, 2025
Merged

fix: use copy instead of reference #2073

merged 2 commits into from
Mar 6, 2025

Conversation

vansangpfiev
Copy link
Contributor

Describe Your Changes

This pull request includes a minor change to the RunServer function in the engine/main.cc file. The change involves modifying the validate_api_key lambda function to use a non-const reference for api_keys.

  • engine/main.cc: Changed validate_api_key lambda function to use a non-const reference for api_keys to potentially allow modifications.

Fixes Issues

  • Closes #
  • Closes #

Self Checklist

  • Added relevant comments, esp in complex areas
  • Updated docs (for bug fixes / features)
  • Created issues for follow-up changes or refactoring needed

@vansangpfiev vansangpfiev marked this pull request as ready for review March 6, 2025 08:57
@vansangpfiev vansangpfiev merged commit 6716266 into dev Mar 6, 2025
21 checks passed
@vansangpfiev vansangpfiev deleted the s/fix/auth branch March 6, 2025 13:16
vansangpfiev added a commit that referenced this pull request Mar 7, 2025
* fix: use copy instead of reference

* fix: exclude swagger

---------

Co-authored-by: sangjanai <sang@jan.ai>
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.

2 participants