mirror of
https://github.com/ninenines/cowboy.git
synced 2025-07-15 04:30:25 +00:00
Make cowboy_req:read_part return multipart headers as map
This commit is contained in:
parent
6f7b59886e
commit
ec00e3d60e
5 changed files with 19 additions and 20 deletions
|
@ -102,7 +102,7 @@ multipart(Req0) ->
|
|||
{data, _FieldName} ->
|
||||
{ok, _Body, Req2} = cowboy_req:read_part_body(Req1),
|
||||
Req2;
|
||||
{file, _FieldName, _Filename, _CType, _CTransferEncoding} ->
|
||||
{file, _FieldName, _Filename, _CType} ->
|
||||
stream_file(Req1)
|
||||
end,
|
||||
multipart(Req);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue