git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* protocol: add Accept-Language header if possible
@ 2022-06-02  3:18 lilinchao
  2022-06-03 18:33 ` lilinchao
  0 siblings, 1 reply; 4+ messages in thread
From: lilinchao @ 2022-06-02  3:18 UTC (permalink / raw)
  To: git; +Cc: Junio C Hamano

Git server end's ability to accept Accept-Language header was introduced in f18604bbf2(http: add Accept-Language header if possible)
but it seems that only refs discovering stage has this ability:
"
╰─$ GIT_CURL_VERBOSE=1 git ls-remote
...
10:42:36.939108 http.c:623              => Send header: GET /opensource/test.git/info/refs?service=git-upload-pack HTTP/1.1
10:42:36.939112 http.c:623              => Send header: Host: gitee.com
10:42:36.939114 http.c:623              => Send header: User-Agent: git/2.35.1.102.g2b9c120970
10:42:36.939116 http.c:623              => Send header: Accept: */*
10:42:36.939117 http.c:623              => Send header: Accept-Encoding: deflate, gzip
10:42:36.939118 http.c:623              => Send header: Accept-Language: en-US, *;q=0.9
10:42:36.939120 http.c:623              => Send header: Pragma: no-cache
10:42:36.939121 http.c:623              => Send header: Git-Protocol: version=2
10:42:36.939123 http.c:623              => Send header:
...
10:42:36.999012 http.c:611              => Send header, 0000000302 bytes (0x0000012e)
10:42:36.999034 http.c:623              => Send header: GET /opensource/test.git/info/refs?service=git-upload-pack HTTP/1.1
10:42:36.999039 http.c:623              => Send header: Host: gitee.com
10:42:36.999041 http.c:623              => Send header: Authorization: Basic <redacted>
10:42:36.999042 http.c:623              => Send header: User-Agent: git/2.35.1.102.g2b9c120970
10:42:36.999044 http.c:623              => Send header: Accept: */*
10:42:36.999063 http.c:623              => Send header: Accept-Encoding: deflate, gzip
10:42:36.999081 http.c:623              => Send header: Accept-Language: en-US, *;q=0.9
10:42:36.999101 http.c:623              => Send header: Pragma: no-cache
10:42:36.999105 http.c:623              => Send header: Git-Protocol: version=2
10:42:36.999106 http.c:623              => Send header:
...
10:42:37.098325 http.c:611              => Send header, 0000000341 bytes (0x00000155)
10:42:37.098368 http.c:623              => Send header: POST /opensource/test.git/git-upload-pack HTTP/1.1
10:42:37.098377 http.c:623              => Send header: Host: gitee.com
10:42:37.098381 http.c:623              => Send header: Authorization: Basic <redacted>
10:42:37.098384 http.c:623              => Send header: User-Agent: git/2.35.1.102.g2b9c120970
10:42:37.098387 http.c:623              => Send header: Accept-Encoding: deflate, gzip
10:42:37.098417 http.c:623              => Send header: Content-Type: application/x-git-upload-pack-request
10:42:37.098421 http.c:623              => Send header: Accept: application/x-git-upload-pack-result
10:42:37.098425 http.c:623              => Send header: Git-Protocol: version=2
10:42:37.098428 http.c:623              => Send header: Content-Length: 118
10:42:37.098431 http.c:623              => Send header:
...
"
Why git-upload-pack/git-receive-pack stage doesn't enable this ability?


--------------
lilinchao@oschina.cn

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2022-06-04  5:46 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-06-02  3:18 protocol: add Accept-Language header if possible lilinchao
2022-06-03 18:33 ` lilinchao
2022-06-03 19:09   ` Junio C Hamano
2022-06-04  5:46     ` lilinchao

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).