diff options
author | Junio C Hamano <gitster@pobox.com> | 2014-06-16 12:18:35 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2014-06-16 12:18:36 -0700 |
commit | 2075a0c27fa5cf4f9f03964d407dc015c1749a7e (patch) | |
tree | 361c26f8579dcd888a9f4e5b54f79534a9c3b608 /t/lib-httpd.sh | |
parent | c37d3269d92eedbdf405a6f196253d120e8e2721 (diff) | |
parent | c553fd1c1ef76688b6200e66a825b530b0b02140 (diff) | |
download | git-2075a0c27fa5cf4f9f03964d407dc015c1749a7e.tar.gz |
Merge branch 'jk/http-errors'
Propagate the error messages from the webserver better to the
client coming over the HTTP transport.
* jk/http-errors:
http: default text charset to iso-8859-1
remote-curl: reencode http error messages
strbuf: add strbuf_reencode helper
http: optionally extract charset parameter from content-type
http: extract type/subtype portion of content-type
t5550: test display of remote http error messages
t/lib-httpd: use write_script to copy CGI scripts
test-lib: preserve GIT_CURL_VERBOSE from the environment
Diffstat (limited to 't/lib-httpd.sh')
-rw-r--r-- | t/lib-httpd.sh | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/t/lib-httpd.sh b/t/lib-httpd.sh index 8b67021a6b..272fceef96 100644 --- a/t/lib-httpd.sh +++ b/t/lib-httpd.sh @@ -110,10 +110,15 @@ else "Could not identify web server at '$LIB_HTTPD_PATH'" fi +install_script () { + write_script "$HTTPD_ROOT_PATH/$1" <"$TEST_PATH/$1" +} + prepare_httpd() { mkdir -p "$HTTPD_DOCUMENT_ROOT_PATH" cp "$TEST_PATH"/passwd "$HTTPD_ROOT_PATH" - cp "$TEST_PATH"/broken-smart-http.sh "$HTTPD_ROOT_PATH" + install_script broken-smart-http.sh + install_script error.sh ln -s "$LIB_HTTPD_MODULE_PATH" "$HTTPD_ROOT_PATH/modules" |