Need to set content type for payload

Stephen Paul Weber created

Change summary

lib/sim_repo.rb | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

Detailed changes

lib/sim_repo.rb 🔗

@@ -43,7 +43,7 @@ class SIMRepo
 		iccid = sim.is_a?(String) ? sim : sim.iccid
 
 		req("line/#{iccid}/refill").apost(
-			head: KEEPGO_HEADERS,
+			head: KEEPGO_HEADERS.merge("Content-Type" => "application/json"),
 			body: kwargs.to_json
 		).then { |req| JSON.parse(req.response) }
 	end