Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
U
ulfssar-go
Project
Project
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
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Faizal Aziz
ulfssar-go
Commits
9d276064
Commit
9d276064
authored
Jul 25, 2024
by
Administrator
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update client.go
parent
08372808
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
client.go
pkg/http-client/client.go
+2
-2
No files found.
pkg/http-client/client.go
View file @
9d276064
...
...
@@ -200,7 +200,7 @@ func (c *client) Post(ctx *context.UlfsaarContext, url string, headers http.Head
//url := c.options.Address + path
startTime
:=
time
.
Now
()
request
:=
c
.
httpClient
.
R
()
request
:=
c
.
httpClient
.
R
emoveProxy
()
.
R
()
request
.
SetBody
(
payload
)
for
h
,
val
:=
range
headers
{
...
...
@@ -209,7 +209,7 @@ func (c *client) Post(ctx *context.UlfsaarContext, url string, headers http.Head
if
headers
[
ContentType
]
==
nil
{
request
.
Header
.
Set
(
ContentType
,
ApplicationJSON
)
}
request
.
Header
.
Set
(
UserAgent
,
UserAgentValue
)
//
request.Header.Set(UserAgent, UserAgentValue)
httpResp
,
httpErr
:=
request
.
Post
(
url
)
...
...
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