AnWeber / vscode-httpyac

Quickly and easily send REST, Soap, GraphQL, GRPC, MQTT and WebSocket requests directly within Visual Studio Code
https://marketplace.visualstudio.com/items?itemName=anweber.vscode-httpyac
MIT License
237 stars 20 forks source link

Multiline requests don't support protocol #159

Closed hffmnn closed 1 year ago

hffmnn commented 1 year ago

A request like

GET https://httpbin.org
  /get

sends a request to https://httpbin.org/get => ✅


Adding the protocol breaks the request:

GET https://httpbin.org
  /get HTTP/1.1

sends a request to https://httpbin.org/get%20HTTP/1.1

AnWeber commented 1 year ago

:-) yes, more or less a known issue. I was too lazy to implement it for every line.if you add the protocol in the first line it will work. I will fix it.

AnWeber commented 1 year ago

I have fixed it. Just for info but specifying the protocol is not mandatory unless you want to make sure that the CLI (default v2) uses the same Http version as the extension in vscode (default 1.1)

hffmnn commented 1 year ago

Nice. Thanks a lot.