git/list[1] front-page[2] threads[3] people[4] search[5] about
 

git has no Authorization in the http header

From
ZLzhang lee <lizhangovo@gmail.com>
Date
May 10, 2023, 06:31 UTC
Message-ID
<CAPQzXO3X1G1VKDXyN=maRo5qZcFhAjqQJoKb6HTJZBrbr26X4w@mail.gmail.com>
Hi team,

When I cloned the code via git http, the url included username and password, but the debug mode request header did not include Authorization. As a result, I could not obtain the Basic Authorization in spring cloud gateway,

as shown in the attachment.
Is there any configuration missing,
Any suggestions please reply, thank you very much.
git debug message:
GIT_CURL_VERBOSE=1 git clone
http://awp-git:kcNkdmW13AvFJoK7@10.109.37.87:8086/awp-git/action_2
Cloning into 'action_2'...
17:56:44.772293 http.c:781              == Info:   Trying 10.109.37.87:8086...
17:56:44.774521 http.c:781              == Info: Connected to
10.109.37.87 (10.109.37.87) port 8086 (#0)
17:56:44.774521 http.c:728              => Send header, 0000000225
bytes (0x000000e1)
17:56:44.774521 http.c:740              => Send header: GET
/awp-git/action_2/info/refs?service=git-upload-pack HTTP/1.1
17:56:44.774521 http.c:740              => Send header: Host: 10.109.37.87:8086
17:56:44.774521 http.c:740              => Send header: User-Agent:
git/2.33.1.windows.1
17:56:44.774521 http.c:740              => Send header: Accept: */*
17:56:44.774521 http.c:740              => Send header:
Accept-Encoding: deflate, gzip, br, zstd
17:56:44.774521 http.c:740              => Send header: Pragma: no-cache
17:56:44.774521 http.c:740              => Send header: Git-Protocol: version=2
17:56:44.774521 http.c:740              => Send header:
17:57:10.644479 http.c:781              == Info: Mark bundle as not
supporting multiuse
17:57:10.644479 http.c:728              <= Recv header, 0000000017
bytes (0x00000011)
17:57:10.644479 http.c:740              <= Recv header: HTTP/1.1 200 OK
17:57:10.644479 http.c:728              <= Recv header, 0000000028
bytes (0x0000001c)
17:57:10.644479 http.c:740              <= Recv header:
transfer-encoding: chunked
17:57:10.644479 http.c:728              <= Recv header, 0000000022
bytes (0x00000016)
17:57:10.644479 http.c:740              <= Recv header: Server: nginx/1.23.4
17:57:10.644479 http.c:728              <= Recv header, 0000000037
bytes (0x00000025)
17:57:10.644479 http.c:740              <= Recv header: Date: Tue, 09
May 2023 09:57:11 GMT
17:57:10.644479 http.c:728              <= Recv header, 0000000059
bytes (0x0000003b)
17:57:10.644479 http.c:740              <= Recv header: Content-Type:
application/x-git-upload-pack-advertisement
17:57:10.644479 http.c:728              <= Recv header, 0000000040
bytes (0x00000028)
17:57:10.644479 http.c:740              <= Recv header: Expires: Fri,
01 Jan 1980 00:00:00 GMT
17:57:10.644479 http.c:728              <= Recv header, 0000000018
bytes (0x00000012)
17:57:10.645480 http.c:740              <= Recv header: Pragma: no-cache
Message 1 of 1 in “git has no Authorization in the http header”
  1. zhang leeMay 10, 2023

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.