woocommerce / wc-api-ruby

A Ruby wrapper for the WooCommerce API.
MIT License
69 stars 73 forks source link

Do not include Content-Type header for GET request #32

Closed ryanzhou closed 7 years ago

ryanzhou commented 7 years ago

This fixes an issue with WordPress 4.7. A rest_invalid_json would be returned if Content-Type is application/json but there's no body.

claudiosanches commented 7 years ago

Included into 1.4.0, thanks for submit this Pull Request.