aboutsummaryrefslogtreecommitdiffstats
path: root/src/cow_http.erl
diff options
context:
space:
mode:
authorLoïc Hoguin <[email protected]>2015-01-04 19:30:11 +0100
committerLoïc Hoguin <[email protected]>2015-01-04 19:30:11 +0100
commit8bd6a5fc574a7f2fb94d12f29f37c650b1586a31 (patch)
treef406282d8875d7dd47edf16d1aa6439580af4b90 /src/cow_http.erl
parent2bad1df1bc13f9d4ceadb31a1cc5905a3548769a (diff)
downloadcowlib-8bd6a5fc574a7f2fb94d12f29f37c650b1586a31.tar.gz
cowlib-8bd6a5fc574a7f2fb94d12f29f37c650b1586a31.tar.bz2
cowlib-8bd6a5fc574a7f2fb94d12f29f37c650b1586a31.zip
Simplify the cow_http_hd code
Also rename the macros for inline lowercasing to ?LOWER, and move the type detection macros to cow_parse.hrl.
Diffstat (limited to 'src/cow_http.erl')
-rw-r--r--src/cow_http.erl2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cow_http.erl b/src/cow_http.erl
index 7bb0562..60f3faa 100644
--- a/src/cow_http.erl
+++ b/src/cow_http.erl
@@ -122,7 +122,7 @@ parse_hd_name(<< C, Rest/bits >>, Acc, SoFar) ->
$: -> parse_hd_before_value(Rest, Acc, SoFar);
$\s -> parse_hd_name_ws(Rest, Acc, SoFar);
$\t -> parse_hd_name_ws(Rest, Acc, SoFar);
- ?INLINE_LOWERCASE(parse_hd_name, Rest, Acc, SoFar)
+ _ -> ?LOWER(parse_hd_name, Rest, Acc, SoFar)
end.
parse_hd_name_ws(<< C, Rest/bits >>, Acc, Name) ->