UNCLASSIFIED
Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
Ironbank Tools
project-template
Commits
8d3ad23d
Commit
8d3ad23d
authored
Aug 23, 2021
by
Michael Simmons
Browse files
Added Content-Type to headers
parent
80cd7649
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
4 deletions
+8
-4
modules/branches.py
modules/branches.py
+8
-4
No files found.
modules/branches.py
View file @
8d3ad23d
...
...
@@ -10,7 +10,8 @@ def __getBranches(url, token, id):
HEADER
=
{
'private_token'
:
token
,
'Accept'
:
'application/json'
'Accept'
:
'application/json'
,
'Content-type'
:
'application/json'
}
page
=
1
...
...
@@ -44,7 +45,8 @@ def __getProtectedBranches(url, token, id):
HEADER
=
{
'private_token'
:
token
,
'Accept'
:
'application/json'
'Accept'
:
'application/json'
,
'Content-type'
:
'application/json'
}
page
=
1
...
...
@@ -78,7 +80,8 @@ def __createBranch(url, token, id, name, ref):
HEADER
=
{
'private_token'
:
token
,
'Accept'
:
'application/json'
'Accept'
:
'application/json'
,
'Content-type'
:
'application/json'
}
PARAMS
=
{
...
...
@@ -95,7 +98,8 @@ def __createProtectedBranch(url, token, id, access):
HEADER
=
{
'private_token'
:
token
,
'Accept'
:
'application/json'
'Accept'
:
'application/json'
,
'Content-type'
:
'application/json'
}
PARAMS
=
{}
...
...
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