I think a symbol clash here is responsible for a build breakage in
next on AIX 5.3:
CC http-backend.o
http-backend.c:213: error: conflicting types for `send_file'
/usr/include/sys/socket.h:676: error: previous declaration of `send_file'
gmake: *** [http-backend.o] Error 1
So we rename the function send_local_file().
Reported-by: Mike Ralphson <redacted>
Signed-off-by: Shawn O. Pearce <redacted>
---
http-backend.c | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
From: Shawn O. Pearce <hidden> Date: 2016-06-15 22:47:41
Some versions of libcurl report their output when GIT_CURL_VERBOSE
is set differently than other versions do. At least one variant
(version unknown but likely pre-7.18.1) reports the POST payload to
stderr, and omits the blank line after each HTTP request/response.
We clip these lines out of the stderr output now before doing the
compare, so we aren't surprised by this trivial difference.
Reported-by: Tarmigan <redacted>
Signed-off-by: Shawn O. Pearce <redacted>
---
t/t5551-http-fetch.sh | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
From: Shawn O. Pearce <hidden> Date: 2016-06-15 22:47:41
Unfortunately at least one version of libcurl has a bug causing
it to include "Accept: */*" in the same POST request where we have
already asked for "Accept: application/x-git-upload-pack-response".
This is a bug in libcurl, not Git, or our test vector. The
application has explicitly asked the server for a single content
type, but libcurl has mistakenly also told the server the client
application will accept */*, which is any content type.
Based on the libcurl change log, this "Accept: */*" header bug
may have been fixed in version 7.18.1 released March 30, 2008:
http://curl.haxx.se/changes.html#7_18_1
Rather than require users to upgrade libcurl we change the test
vector to trim this line out of the 2nd request.
Reported-by: Tarmigan <redacted>
Signed-off-by: Shawn O. Pearce <redacted>
---
Actually, I don't want to apply this.
Tarmigan, your libcurl is broken, it looks like a newer version
fixes the problem, so I would suggest upgrading it.
t/t5551-http-fetch.sh | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
On Mon, Nov 9, 2009 at 10:10 AM, Shawn O. Pearce [off-list ref] wrote:
Some versions of libcurl report their output when GIT_CURL_VERBOSE
is set differently than other versions do. At least one variant
(version unknown but likely pre-7.18.1) reports the POST payload to
stderr, and omits the blank line after each HTTP request/response.
Almost. This still needs a
'> '
before both of the 00 additions. Changing this and applying 3/3 makes
the test pass for me.
Tested-with-modifications-by: Tarmigan [off-list ref]
On Mon, Nov 9, 2009 at 10:10 AM, Shawn O. Pearce [off-list ref] wrote:
Unfortunately at least one version of libcurl has a bug causing
it to include "Accept: */*" in the same POST request where we have
already asked for "Accept: application/x-git-upload-pack-response".
This is a bug in libcurl, not Git, or our test vector. The
application has explicitly asked the server for a single content
type, but libcurl has mistakenly also told the server the client
application will accept */*, which is any content type.
Based on the libcurl change log, this "Accept: */*" header bug
may have been fixed in version 7.18.1 released March 30, 2008:
http://curl.haxx.se/changes.html#7_18_1
Rather than require users to upgrade libcurl we change the test
vector to trim this line out of the 2nd request.
Reported-by: Tarmigan <redacted>