[TNEXT-2301] Use the extension in the file name first 71/145271/2 accepted/tizen/4.0/unified/20170829.020504 accepted/tizen/unified/20170822.113119 submit/tizen/20170822.040721 submit/tizen_4.0/20170828.100004
authorSeonah Moon <seonah1.moon@samsung.com>
Tue, 22 Aug 2017 02:23:40 +0000 (11:23 +0900)
committerseonah moon <seonah1.moon@samsung.com>
Tue, 22 Aug 2017 04:00:12 +0000 (04:00 +0000)
commit636022cf94240a69d0195fccbbb94e15f2183b08
treef608d0c24f7de344073c132c10f49b831da3949f
parent8fbc3fc79f7edb3cf9bf269c930094b4dcfc5d17
[TNEXT-2301] Use the extension in the file name first

The download-provider checks the extension from URL first.
So, it appends the extension to the file name although it includes the extension.
This issue makes the file name have the duplicated extension.

Change-Id: I81cc1aa344a7252693397706edfe58b23800dbc2
Signed-off-by: Seonah Moon <seonah1.moon@samsung.com>
agent/download-agent-file.c
packaging/download-provider.spec