mirror of
https://github.com/jnunemaker/httparty
synced 2023-03-27 23:23:07 -04:00
![]() The format. helper in Rails calls .to_json on the object in the body. When using the head helper, it calls to_json on nil, resulting in "null". Since its a null value, it isn't necessarilly incorrect, but its debatable whether a HEAD only response should have a body at all. On the other hand. MultiJSON doesn't parse "null", " ", nil or an empty string. Of course we can also blame Net::HTTP for saying that null in the body stands for a string with "null". Thats like having a barbeque, forgetting the meat, but putting some lard on anyway. So, lets just let HTTParty fix it. Everyone's invited :-) |
||
---|---|---|
.. | ||
fixtures | ||
httparty | ||
support | ||
httparty_spec.rb | ||
spec.opts | ||
spec_helper.rb |