]>
Commit | Line | Data |
---|---|---|
eae0bfdc PP |
1 | /* |
2 | * Copyright (C) the libgit2 contributors. All rights reserved. | |
3 | * | |
4 | * This file is part of libgit2, distributed under the GNU GPL v2 with | |
5 | * a Linking Exception. For full terms see the included COPYING file. | |
6 | */ | |
7 | ||
8 | #ifndef INCLUDE_transports_http_h__ | |
9 | #define INCLUDE_transports_http_h__ | |
10 | ||
11 | #include "buffer.h" | |
12 | ||
ac3d33df JK |
13 | #define GIT_HTTP_REPLAY_MAX 7 |
14 | ||
eae0bfdc PP |
15 | GIT_INLINE(int) git_http__user_agent(git_buf *buf) |
16 | { | |
17 | const char *ua = git_libgit2__user_agent(); | |
18 | ||
19 | if (!ua) | |
20 | ua = "libgit2 " LIBGIT2_VERSION; | |
21 | ||
22 | return git_buf_printf(buf, "git/2.0 (%s)", ua); | |
23 | } | |
24 | ||
25 | #endif |