embedly/embedly-ruby — pull request #10 by devdazed (2011-11-04 21:40:27+00:00)
Title: Reject urls that are too long

In a recent set of messages with Art, I was informed that we were passing requests that were too long for the API server to handle. This problem can be alleviated if the API Gem rejects the call first. I set the max length of the URL to be 2048 characters (as opposed to 2900 which the NGINX starts rejecting) in order to allow for the API key and any other options to be passed. This should keep the requests to less than 2900 bytes.

In the pull request is the modification as well as the cucumber test to verify it.