[PR #2083] [MERGED] feat: Ensure Method In Endpoint #3622

Closed
opened 2026-03-17 01:13:18 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/hoppscotch/hoppscotch/pull/2083
Author: @RishabhAgarwal-2001
Created: 1/24/2022
Status: Merged
Merged: 1/24/2022
Merged by: @AndrewBastin

Base: mainHead: main


📝 Commits (2)

  • 20bfd16 feat: Ensure Method In Endpoint
  • a55ad7f Merge branch 'main' into main

📊 Changes

1 file changed (+13 additions, -0 deletions)

View changed files

📝 packages/hoppscotch-app/components/http/Request.vue (+13 -0)

📄 Description

Closes #2058

Description

While sending a HTTP request without a specified method, the method is determined using domain name and appended to the request. Following is the way of determining the request method -

  • If domain name is either localhost or period delimited numbers (eg. 127.0.0.1 or any IP address), HTTP protocol is used
  • In all other cases HTTPS protocol is used

The updated endpoint is reflected in the URL input box.

Checks

  • My pull request adheres to the code style of this project
  • My code requires changes to the documentation
  • I have updated the documentation as required
  • All the tests have passed

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/hoppscotch/hoppscotch/pull/2083 **Author:** [@RishabhAgarwal-2001](https://github.com/RishabhAgarwal-2001) **Created:** 1/24/2022 **Status:** ✅ Merged **Merged:** 1/24/2022 **Merged by:** [@AndrewBastin](https://github.com/AndrewBastin) **Base:** `main` ← **Head:** `main` --- ### 📝 Commits (2) - [`20bfd16`](https://github.com/hoppscotch/hoppscotch/commit/20bfd1658a67f42134f68934c04b81ad29e74963) feat: Ensure Method In Endpoint - [`a55ad7f`](https://github.com/hoppscotch/hoppscotch/commit/a55ad7f323015c89d6585dc67cbaad431cf85ca9) Merge branch 'main' into main ### 📊 Changes **1 file changed** (+13 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `packages/hoppscotch-app/components/http/Request.vue` (+13 -0) </details> ### 📄 Description <!-- If this pull request closes an issue, please mention the issue number below --> Closes #2058 ### Description <!-- Add a brief description of the pull request --> While sending a HTTP request without a specified method, the method is determined using domain name and appended to the request. Following is the way of determining the request method - * If domain name is either `localhost` or period delimited numbers (eg. `127.0.0.1` or any IP address), `HTTP` protocol is used * In all other cases `HTTPS` protocol is used The updated endpoint is reflected in the URL input box. ### Checks <!-- Make sure your pull request passes the CI checks and do check the following fields as needed - --> - [x] My pull request adheres to the code style of this project - [ ] My code requires changes to the documentation - [ ] I have updated the documentation as required - [x] All the tests have passed --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-03-17 01:13:18 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/hoppscotch#3622
No description provided.