Skip to content

Basic auth using @ in URL does not work as @ is percent encoded #453

@teleivo

Description

@teleivo

Prerequisites

  • I am using the latest stable release of Neovim
  • I am using the latest version of the plugin

Neovim Version

v0.11.0-dev-722+g9570ad24f5

Operating system/version

Debian 6

Actual behavior

The @ will be percent encoded as previously reported and fixed in #192

Expected behavior

Ability to pass basic auth credentials as described in #89
GET https://guest:guest@jigsaw.w3.org/HTTP/Basic/

Steps to reproduce

Make a request like GET https://guest:guest@jigsaw.w3.org/HTTP/Basic/ using the plugin.

Other information

Thank you for this plugin, it is soo useful 🤩

Repro (lazy.nvim)

vim.env.LAZY_STDPATH = ".repro"
load(vim.fn.system("curl -s https://raw.githubusercontent.com/folke/lazy.nvim/main/bootstrap.lua"))()

require("lazy.minit").repro({
    spec = {
        "rest-nvim/rest.nvim",
        {
            "nvim-treesitter/nvim-treesitter",
            build = ":TSUpdate",
            main = "nvim-treesitter.configs",
            opts = {
                ensure_installed = { "http" },
                sync_install = false,
                highlight = { enable = true },
                indent = { enable = true },
            },
        },
    },
})

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions