Skip to content

Conversation

@Vitaly312
Copy link
Contributor

Description

Previously, the leading slash was unconditionally stripped from the virtualhost argument. This caused a regression where vhosts named /name were incorrectly parsed as name.

This PR restores backward compatibility with version 0.5.33. Now a leading slash in virtualhost (e.g. /test) is preserved correctly.
Fixes #2652

Type of change

  • Bug fix (a non-breaking change that resolves an issue)

Checklist

  • My code adheres to the style guidelines of this project (just lint shows no errors)
  • I have conducted a self-review of my own code
  • I have made the necessary changes to the documentation
  • My changes do not generate any new warnings
  • I have added tests to validate the effectiveness of my fix
  • Both new and existing unit tests pass successfully on my local environment by running just test-coverage
  • I have ensured that static analysis tests are passing by running just static-analysis
  • I have included code examples to illustrate the modifications

Previously, the leading slash was unconditionally stripped from the
virtualhost argument. This caused a regression where vhosts named
'/name' were incorrectly parsed as 'name'.

This commit fixes the parsing logic to preserve the leading slash
while maintaining backward compatibility for the '//name' workaround.

Fixes ag2ai#2652
@Vitaly312 Vitaly312 requested a review from Lancetnik as a code owner December 7, 2025 09:20
@CLAassistant
Copy link

CLAassistant commented Dec 7, 2025

CLA assistant check
All committers have signed the CLA.

@Lancetnik Lancetnik enabled auto-merge December 7, 2025 09:32
@Lancetnik Lancetnik added this pull request to the merge queue Dec 7, 2025
Merged via the queue into ag2ai:main with commit 71555f5 Dec 7, 2025
32 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.

Bug: The coexistence issue between URL and virtualhost

3 participants