Skip to content
Browse files

ewgi_inets/stream_process_deliver_chunk: removed a unneeded dependenc…

…y on mochihex.
  • Loading branch information...
1 parent 4d9df80 commit a4baaa132cc3eb46e74ac0b0f7e692550cf2d255 @davide davide committed Nov 4, 2009
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/server_gateways/ewgi_inets.erl
View
4 src/server_gateways/ewgi_inets.erl
@@ -331,15 +331,15 @@ stream_process_deliver_chunk(Sock, IoList) ->
0 ->
stream_process_deliver_final_chunk(Sock, IoList);
S ->
- [mochihex:to_hex(S), "\r\n", IoList, "\r\n"]
+ [http_util:integer_to_hexlist(S), "\r\n", IoList, "\r\n"]
end,
gen_tcp:send(Sock, Chunk).
stream_process_deliver_final_chunk(Sock, IoList) ->
Chunk = case erlang:iolist_size(IoList) of
0 ->
<<"0\r\n\r\n">>;
S ->
- [mochihex:to_hex(S), "\r\n", IoList, "\r\n0\r\n\r\n"]
+ [http_util:integer_to_hexlist(S), "\r\n", IoList, "\r\n0\r\n\r\n"]
end,
gen_tcp:send(Sock, Chunk).

0 comments on commit a4baaa1

Please sign in to comment.
Something went wrong with that request. Please try again.