aboutsummaryrefslogtreecommitdiffstats
path: root/test/rest_simple_resource.erl
diff options
context:
space:
mode:
authorMagnus Klaar <[email protected]>2011-12-10 17:58:31 +0100
committerMagnus Klaar <[email protected]>2011-12-10 18:33:09 +0100
commitb1bbd023c54def70cf748ff78c02b8b021e87c18 (patch)
treebe8e72caed4208320a159444d2fd179cbc7157f7 /test/rest_simple_resource.erl
parent168405830d564ff87fac61bd990c17ab6a35dfa8 (diff)
downloadcowboy-b1bbd023c54def70cf748ff78c02b8b021e87c18.tar.gz
cowboy-b1bbd023c54def70cf748ff78c02b8b021e87c18.tar.bz2
cowboy-b1bbd023c54def70cf748ff78c02b8b021e87c18.zip
update /bits in binary expressions to /binary
This is a workaround for an issue in the hipe compiler where compilation of code matching on binaries using patterns of the form Data = <<Char, _Ignore/bits>> fails because _Ignore is expected to be used. Using /binary instead of /bits resolves the issue. We're applying this change to all binary expressions in cowboy_http because all functions in this module process human readable text formats which are always expected to be bytestrings. Two uses of /bits has been changed to /binary in cowboy_http_websocket in two clauses of a single function, websocket_data/4. This is safe to change because the data is later passed to binary:match/2 which will always fail with a badarg error if the input is a bitstring instead of a bytestring.
Diffstat (limited to 'test/rest_simple_resource.erl')
0 files changed, 0 insertions, 0 deletions