Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
git2
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lvzhengyang
git2
Commits
d16c1b97
Commit
d16c1b97
authored
Sep 24, 2015
by
Matt Burke
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
These can be static
parent
e60db3c7
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
src/remote.c
+1
-1
src/transports/smart.c
+3
-3
No files found.
src/remote.c
View file @
d16c1b97
...
...
@@ -687,7 +687,7 @@ int set_transport_callbacks(git_transport *t, const git_remote_callbacks *cbs)
cbs
->
certificate_check
,
cbs
->
payload
);
}
int
set_transport_custom_headers
(
git_transport
*
t
,
const
git_strarray
*
custom_headers
)
static
int
set_transport_custom_headers
(
git_transport
*
t
,
const
git_strarray
*
custom_headers
)
{
if
(
!
t
->
set_custom_headers
||
!
custom_headers
)
return
0
;
...
...
src/transports/smart.c
View file @
d16c1b97
...
...
@@ -66,7 +66,7 @@ static int git_smart__set_callbacks(
return
0
;
}
int
http_header_name_length
(
const
char
*
http_header
)
static
int
http_header_name_length
(
const
char
*
http_header
)
{
const
char
*
colon
=
strchr
(
http_header
,
':'
);
if
(
!
colon
)
...
...
@@ -74,7 +74,7 @@ int http_header_name_length(const char *http_header)
return
colon
-
http_header
;
}
bool
is_malformed_http_header
(
const
char
*
http_header
)
static
bool
is_malformed_http_header
(
const
char
*
http_header
)
{
const
char
*
c
;
int
name_len
;
...
...
@@ -104,7 +104,7 @@ static char *forbidden_custom_headers[] = {
"Content-Length"
,
};
bool
is_forbidden_custom_header
(
const
char
*
custom_header
)
static
bool
is_forbidden_custom_header
(
const
char
*
custom_header
)
{
unsigned
long
i
;
int
name_len
=
http_header_name_length
(
custom_header
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment