Skip to content

Commit

Permalink
Merge pull request #29 from Dzalevski/bug/empty-body-string
Browse files Browse the repository at this point in the history
fix:  Test ExampleGetCurlCommand_emptyStringBody wrong output
  • Loading branch information
moul authored Mar 28, 2021
2 parents f05b45c + 348b9e6 commit 102d45f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,6 @@ gin-bin

# Output of the go coverage tool, specifically when used with LiteIDE
*.out

# IDE settings
.idea
2 changes: 1 addition & 1 deletion http2curl_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ func ExampleGetCurlCommand_emptyStringBody() {
fmt.Println(command)

// Output:
// curl -X 'PUT' -d '' -H 'Content-Type: application/json' 'http://www.example.com/abc/def.ghi?jlk=mno&pqr=stu'
// curl -X 'PUT' -H 'Content-Type: application/json' 'http://www.example.com/abc/def.ghi?jlk=mno&pqr=stu'
}

func ExampleGetCurlCommand_newlineInBody() {
Expand Down

0 comments on commit 102d45f

Please sign in to comment.