[chef] Re: Posting JSON with http_request


Chronological Thread 
  • From: Daniel DeLeo < >
  • To:
  • Subject: [chef] Re: Posting JSON with http_request
  • Date: Wed, 19 Mar 2014 08:44:07 -0700



On Friday, March 14, 2014 at 7:25 AM, Nathan Mische wrote:

> Hello,
>  
> It looks like posting JSON with http_request broke in Chef 11.8. (See: 
> https://tickets.opscode.com/browse/CHEF-4877) Does anyone know of a 
> workaround?
>  
> Thanks,
>  
> -Nathan  
Convert the body to a JSON string with {“thing” => “value”}.to_json, and add 
the correct content-type header.

--  
Daniel DeLeo






Archive powered by MHonArc 2.6.16.

§