git has no Authorization in the http header

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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



[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]

  Powered by Linux