simplify JSON payload for checkoutservice

This commit is contained in:
yurecz 2019-12-11 10:41:23 +01:00
parent 2834f6a7ce
commit 981d8c2efa

View file

@ -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{}