Skip to content

Fix bugs in methodExtraction/HttpRequest.kt and update Kotlin version#71

Closed
Copilot wants to merge 1 commit intomainfrom
copilot/fix-70
Closed

Fix bugs in methodExtraction/HttpRequest.kt and update Kotlin version#71
Copilot wants to merge 1 commit intomainfrom
copilot/fix-70

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented May 28, 2025

This PR resolves conflicts in PR #66 by addressing two bugs in the HttpRequest.kt file and updating the Kotlin JVM plugin version.

Changes

  1. Fixed a bug in matchMethod() function:

    • It was incorrectly checking this.body instead of this.method when comparing HTTP methods
    • This caused incorrect method comparison logic
  2. Fixed a bug in matchBody() function:

    • The error message was incorrectly showing method values instead of body values
    • Changed from "${this.method} not equal to ${anotherRequest.method}" to "${this.body} not equal to ${anotherRequest.body}"
  3. Updated Kotlin JVM plugin version:

All tests pass with these changes, and the code now correctly compares HTTP request components.

Fixes #70.


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

Copilot AI changed the title [WIP] Resolve conflicts in PR #66 Fix bugs in methodExtraction/HttpRequest.kt and update Kotlin version May 28, 2025
Copilot AI requested a review from harikrishnan83 May 28, 2025 07:01
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.

Resolve conflicts in PR #66

2 participants