OSDN Git Service
(root)
/
applistation
/
AppliStation.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8606e4c
)
na-get-lib,「チケット #24638 softlist.xmlの取得に失敗する」の暫定策。User-Agent: AppliStation/1.3 を追記
author
ttp
<ttp@users.sourceforge.jp>
Sun, 13 Mar 2011 14:57:46 +0000
(23:57 +0900)
committer
ttp
<ttp@users.sourceforge.jp>
Sun, 13 Mar 2011 14:57:46 +0000
(23:57 +0900)
na-get-lib/NaGet.Net/Downloader.cs
patch
|
blob
|
history
diff --git
a/na-get-lib/NaGet.Net/Downloader.cs
b/na-get-lib/NaGet.Net/Downloader.cs
index
623e787
..
e54bfe8
100644
(file)
--- a/
na-get-lib/NaGet.Net/Downloader.cs
+++ b/
na-get-lib/NaGet.Net/Downloader.cs
@@
-168,6
+168,7
@@
public class Downloader : NaGetTask
HttpWebRequest httpRequest = request as HttpWebRequest;
\r
if (httpRequest != null) {
\r
httpRequest.AutomaticDecompression = DecompressionMethods.Deflate | DecompressionMethods.GZip;
\r
+ httpRequest.UserAgent = "AppliStation/1.3";
\r
}
\r
\r
if (cancelCalled) {
\r