Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Digest auth does not work #483

Open
1 of 2 tasks
svenXY opened this issue Oct 4, 2024 · 0 comments
Open
1 of 2 tasks

Digest auth does not work #483

svenXY opened this issue Oct 4, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@svenXY
Copy link

svenXY commented Oct 4, 2024

Prerequisites

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

Neovim Version

NVIM v0.11.0-dev-700+gbcae8be91f

Operating system/version

MacOS 14.7

Actual behavior

GET https://httpbin.io/digest-auth/auth/user/pass
Authorization: Digest user:pass
Accept:application/json

response:

### foo#2
GET https://httpbin.io/digest-auth/auth/user/pass
HTTP/1.1 401 Unauthorized

# @_RES
{
  "status_code": 401,
  "error": "Unauthorized"
}

# @_END

Expected behavior

As this is the official httpbin.io endpoint for digest authentication, it should answer with 200 OK

Steps to reproduce

Use your own repro.lua and try with a .http file containing

GET https://httpbin.io/digest-auth/auth/user/pass
Authorization: Digest user:pass
Accept:application/json

Other information

This works for e.g. kulala

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 },
            },
        },
    },
})
@svenXY svenXY added the bug Something isn't working label Oct 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant