Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
G
Geth-Modification
Project
Project
Details
Activity
Releases
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
张蕾
Geth-Modification
Commits
e94dfb78
Unverified
Commit
e94dfb78
authored
Feb 17, 2017
by
Péter Szilágyi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
swarm/api/http: fix go vet issue on Go 1.8
parent
bdef758d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
server_test.go
swarm/api/http/server_test.go
+3
-0
No files found.
swarm/api/http/server_test.go
View file @
e94dfb78
...
@@ -113,6 +113,9 @@ func TestBzzrGetPath(t *testing.T) {
...
@@ -113,6 +113,9 @@ func TestBzzrGetPath(t *testing.T) {
url
+=
common
.
ToHex
(
key
[
0
])[
2
:
]
+
"/"
+
k
[
1
:
]
+
"?content_type=text/plain"
url
+=
common
.
ToHex
(
key
[
0
])[
2
:
]
+
"/"
+
k
[
1
:
]
+
"?content_type=text/plain"
}
}
resp
,
err
=
http
.
Get
(
url
)
resp
,
err
=
http
.
Get
(
url
)
if
err
!=
nil
{
t
.
Fatalf
(
"Request failed: %v"
,
err
)
}
defer
resp
.
Body
.
Close
()
defer
resp
.
Body
.
Close
()
respbody
,
err
=
ioutil
.
ReadAll
(
resp
.
Body
)
respbody
,
err
=
ioutil
.
ReadAll
(
resp
.
Body
)
...
...
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