extend/cowboy — pull request #255 by prof3ta (2012-09-11 11:44:54+00:00)
Title: Include inets and crypto among included applications.

Cowboy requires some dependencies, such as _inets_ and _crypto_ as dependencies.
These should be part of the _included_applications_ list in the *cowboy.app.src* file.

As an example, _crypto_ is required in the _cowboy_http_websocket:hybi_challenge/2_ function, used during websocket upgrade, which in my case was failing with a "cryptic":

exception_from {cowboy_http_websocket,websocket_upgrade,2} {error,{badmatch,false}}

I had to trace the whole thing, before I could understand that this was due to the crypto application not being included in my release.

Having these applications among the included_applications will cause reltool to raise errors in cases required applications are missing.

Same for inets, since the _httpd_util_ module is used in _cowboy_http.erl_