diff options
author | Loïc Hoguin <[email protected]> | 2015-03-12 16:13:40 +0100 |
---|---|---|
committer | Loïc Hoguin <[email protected]> | 2015-03-12 16:13:40 +0100 |
commit | 6f9b4bbc415db026f080b10a3d3d4400801882b1 (patch) | |
tree | 760275a03de406a1b05c60282dd562f53adcb594 /src/cow_multipart.erl | |
parent | a8db5d9f7a21f36d4582dd083001757513e5990e (diff) | |
download | cowlib-6f9b4bbc415db026f080b10a3d3d4400801882b1.tar.gz cowlib-6f9b4bbc415db026f080b10a3d3d4400801882b1.tar.bz2 cowlib-6f9b4bbc415db026f080b10a3d3d4400801882b1.zip |
Maintenance
* Update copyright years.
* Update erlang.mk.
* Fix triq testing.
Diffstat (limited to 'src/cow_multipart.erl')
-rw-r--r-- | src/cow_multipart.erl | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/src/cow_multipart.erl b/src/cow_multipart.erl index c53cdb4..d37a7e1 100644 --- a/src/cow_multipart.erl +++ b/src/cow_multipart.erl @@ -1,4 +1,4 @@ -%% Copyright (c) 2014, Loïc Hoguin <[email protected]> +%% Copyright (c) 2014-2015, Loïc Hoguin <[email protected]> %% %% Permission to use, copy, modify, and/or distribute this software for any %% purpose with or without fee is hereby granted, provided that the above @@ -362,9 +362,7 @@ parse_partial_test() -> {ok, <<"boundary">>, <<"\r\n--">>} = parse_body(<<"boundary\r\n--">>, <<"boundary">>), ok. --endif. --ifdef(PERF). perf_parse_multipart(Stream, Boundary) -> case parse_headers(Stream, Boundary) of {ok, _, Rest} -> @@ -461,9 +459,7 @@ identity_test() -> {done, Body2, M6} = parse_body(M5, B), {done, Epilogue} = parse_headers(M6, B), ok. --endif. --ifdef(PERF). perf_build_multipart() -> B = boundary(), [ @@ -575,9 +571,7 @@ parse_content_disposition_test_() -> {<<"file">>, [{<<"filename">>, <<"file2.gif">>}]}} ], [{V, fun() -> R = parse_content_disposition(V) end} || {V, R} <- Tests]. --endif. --ifdef(PERF). horse_parse_content_disposition_attachment() -> horse:repeat(100000, parse_content_disposition(<<"attachment; filename=genome.jpeg;" @@ -617,9 +611,7 @@ parse_content_transfer_encoding_test_() -> ], [{V, fun() -> R = parse_content_transfer_encoding(V) end} || {V, R} <- Tests]. --endif. --ifdef(PERF). horse_parse_content_transfer_encoding() -> horse:repeat(100000, parse_content_transfer_encoding(<<"QUOTED-PRINTABLE">>) @@ -680,9 +672,7 @@ parse_content_type_test_() -> ], [{V, fun() -> R = parse_content_type(V) end} || {V, R} <- Tests]. --endif. --ifdef(PERF). horse_parse_content_type_zero() -> horse:repeat(100000, parse_content_type(<<"text/plain">>) |