diff options
author | Tay Ray Chuan <rctay89@gmail.com> | 2009-06-06 16:43:41 +0800 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2009-06-06 10:56:27 -0700 |
commit | e917674597cc0b345ad2d6e29fd1a03e1039615a (patch) | |
tree | 26e4286aff1bf9b6364e56d21314dde48f45b56d /http.h | |
parent | df005219dd4a4c7c310c1e1ab5946f9ba69cc82d (diff) | |
download | git-e917674597cc0b345ad2d6e29fd1a03e1039615a.tar.gz |
http*: move common variables and macros to http.[ch]
Move RANGE_HEADER_SIZE to http.h.
Create no_pragma_header, the curl header list containing the header
"Pragma:" in http.[ch]. It is allocated in http_init, and freed in
http_cleanup. This replaces the no_pragma_header in http-push.c, and
the no_pragma_header member in walker_data in http-walker.c.
Create http_is_verbose. It is to be used by methods in http.c, and is
modified at the entry points of http.c's users, namely http-push.c
(when parsing options) and http-walker.c (in get_http_walker).
Signed-off-by: Tay Ray Chuan <rctay89@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'http.h')
-rw-r--r-- | http.h | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -88,11 +88,16 @@ extern void add_fill_function(void *data, int (*fill)(void *)); extern void step_active_slots(void); #endif +extern struct curl_slist *no_pragma_header; + +#define RANGE_HEADER_SIZE 30 + extern void http_init(struct remote *remote); extern void http_cleanup(void); extern int data_received; extern int active_requests; +extern int http_is_verbose; extern char curl_errorstr[CURL_ERROR_SIZE]; |