Skip to content

Commit

Permalink
fix: add default value for Request's element
Browse files Browse the repository at this point in the history
issue: #137
  • Loading branch information
CodeBear801 committed Feb 3, 2020
1 parent 8f02a0d commit 4b79d3b
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions integration/pkg/api/osrm/table/request.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,13 @@ func NewRequest() *Request {

return &Request{
// Path
Service: "table",
Version: "v1",
Profile: "driving",
Coordinates: coordinate.Coordinates{},
Service: "table",
Version: "v1",
Profile: "driving",
Coordinates: coordinate.Coordinates{},
Sources: genericoptions.Elements{},
Destinations: genericoptions.Elements{},
Annotations: "",
}

}
Expand Down Expand Up @@ -133,7 +136,7 @@ func (r *Request) QueryString() string {
return query
}

// QueryValues convert route Request to url.Values.
// QueryValues convert table Request to url.Values.
func (r *Request) QueryValues() (v url.Values) {
v = make(url.Values)

Expand Down

0 comments on commit 4b79d3b

Please sign in to comment.