add header content type for GC
This commit is contained in:
		
							parent
							
								
									fb104bb0bd
								
							
						
					
					
						commit
						e354f157a0
					
				| 
						 | 
					@ -79,6 +79,9 @@ func (c *Client) CreateOrder(p CreateOrderPayload) (*CreateOrderResponseDecoded,
 | 
				
			||||||
			URL:    url,
 | 
								URL:    url,
 | 
				
			||||||
			Method: http.MethodPost,
 | 
								Method: http.MethodPost,
 | 
				
			||||||
			Data:   pjson.ToJSONString(body),
 | 
								Data:   pjson.ToJSONString(body),
 | 
				
			||||||
 | 
								Header: map[string]string{
 | 
				
			||||||
 | 
									"Content-Type": "application/json",
 | 
				
			||||||
 | 
								},
 | 
				
			||||||
		},
 | 
							},
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
	msg, err := c.requestNats(subject.Communication.RequestHTTP, natsPayload)
 | 
						msg, err := c.requestNats(subject.Communication.RequestHTTP, natsPayload)
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -1 +0,0 @@
 | 
				
			||||||
package globalcare
 | 
					 | 
				
			||||||
		Loading…
	
		Reference in New Issue