Vscode-restclient: Host header

Created on 8 Jul 2016  路  2Comments  路  Source: Huachao/vscode-restclient

  • VSCode Version: 1.3.0
  • OS Version: Windows 10.0.10586
GET /api/v1/chat HTTP/1.1
Host: localhost:8084
Content-Type: application/x-www-form-urlencoded

Steps to Reproduce:

  1. Do "Copy request headers" on some call in Chrome Network tab
  2. Paste it to VSCode
  3. Run REST Client
    Result: Invalid URI "/api/v1/chat

Alternative Steps:

  1. Copy Generated HTTP code from Chrome Postman extension
  2. Paste it to VSCode
  3. Run REST Client
    Result: Invalid URI "/api/v1/chat

Expected result: Expected it to take the Host from headers if the path is absolute.

bug

Most helpful comment

@tarmo888 @vitaliy-komenda the bug as been fixed, and you can try latest version 0.5.5 :sweat_smile:

All 2 comments

@tarmo888 nice catching, I will fix it ASAP. Or if you have interest, you could contribute to this extension , and that's warm welcomed :smiley:

@tarmo888 @vitaliy-komenda the bug as been fixed, and you can try latest version 0.5.5 :sweat_smile:

Was this page helpful?
0 / 5 - 0 ratings