Permalink
Browse files

Fixed PUT method with chunked transfer encoding.

Case-insensitivity value matching of Transfer-Encoding header should be used. For example, MacOS Finder uses "Transfer-Encoding: Chunked".
  • Loading branch information...
1 parent 309f9bb commit eb46ae928c8f5f3f450db4256e691ff016744005 @lyk0rian lyk0rian committed Sep 10, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/yaws_dav.erl
View
@@ -111,7 +111,7 @@ put(SC, ARG) ->
try
case H#headers.content_length of
undefined ->
- Chunked = H#headers.transfer_encoding == "chunked",
+ Chunked = yaws:to_lower(H#headers.transfer_encoding) == "chunked",
case H#headers.connection of
"close" when Chunked == false->
store_client_data(Fd, CliSock, all, SSL);

0 comments on commit eb46ae9

Please sign in to comment.