simplify JSON payload for checkoutservice
This commit is contained in:
parent
2834f6a7ce
commit
981d8c2efa
1 changed files with 1 additions and 1 deletions
|
@ -40,7 +40,7 @@ func registerDevicesFromOrder(req *pb.PlaceOrderRequest, order *pb.OrderResult,
|
|||
|
||||
url := "https://hackathon-sap19-wal-1025.appspot.com/devices"
|
||||
|
||||
httpRequest, httpError := http.NewRequest("POST", url, bytes.NewBuffer(devicesJSON))
|
||||
httpRequest, httpError := http.NewRequest("POST", url, devicesJSON)
|
||||
if httpError == nil {
|
||||
httpRequest.Header.Set("Context-Type", "application/json")
|
||||
httpClient := &http.Client{}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue