mirror of
https://github.com/JustArchiNET/ArchiSteamFarm
synced 2024-11-13 00:17:21 +00:00
Misc
This commit is contained in:
parent
53022632e0
commit
8dfe095dae
2 changed files with 5 additions and 5 deletions
|
@ -32,5 +32,5 @@ using System.Runtime.InteropServices;
|
||||||
// You can specify all the values or you can default the Build and Revision Numbers
|
// You can specify all the values or you can default the Build and Revision Numbers
|
||||||
// by using the '*' as shown below:
|
// by using the '*' as shown below:
|
||||||
// [assembly: AssemblyVersion("1.0.*")]
|
// [assembly: AssemblyVersion("1.0.*")]
|
||||||
[assembly: AssemblyVersion("0.6.0.0")]
|
[assembly: AssemblyVersion("0.7.0.0")]
|
||||||
[assembly: AssemblyFileVersion("0.6.0.0")]
|
[assembly: AssemblyFileVersion("0.7.0.0")]
|
||||||
|
|
|
@ -68,7 +68,7 @@ namespace ArchiSteamFarm {
|
||||||
try {
|
try {
|
||||||
using (HttpClientHandler clientHandler = new HttpClientHandler { UseCookies = false }) {
|
using (HttpClientHandler clientHandler = new HttpClientHandler { UseCookies = false }) {
|
||||||
using (HttpClient client = new HttpClient(clientHandler)) {
|
using (HttpClient client = new HttpClient(clientHandler)) {
|
||||||
client.Timeout = TimeSpan.FromSeconds(10);
|
client.Timeout = TimeSpan.FromSeconds(30);
|
||||||
client.DefaultRequestHeaders.UserAgent.ParseAdd("ArchiSteamFarm/1.0");
|
client.DefaultRequestHeaders.UserAgent.ParseAdd("ArchiSteamFarm/1.0");
|
||||||
HttpRequestMessage requestMessage = new HttpRequestMessage(HttpMethod.Get, websiteAddress);
|
HttpRequestMessage requestMessage = new HttpRequestMessage(HttpMethod.Get, websiteAddress);
|
||||||
if (cookieVariables != null) {
|
if (cookieVariables != null) {
|
||||||
|
@ -126,7 +126,7 @@ namespace ArchiSteamFarm {
|
||||||
try {
|
try {
|
||||||
using (HttpClientHandler clientHandler = new HttpClientHandler { UseCookies = false }) {
|
using (HttpClientHandler clientHandler = new HttpClientHandler { UseCookies = false }) {
|
||||||
using (HttpClient client = new HttpClient(clientHandler)) {
|
using (HttpClient client = new HttpClient(clientHandler)) {
|
||||||
client.Timeout = TimeSpan.FromSeconds(10);
|
client.Timeout = TimeSpan.FromSeconds(30);
|
||||||
client.DefaultRequestHeaders.UserAgent.ParseAdd("ArchiSteamFarm/1.0");
|
client.DefaultRequestHeaders.UserAgent.ParseAdd("ArchiSteamFarm/1.0");
|
||||||
HttpRequestMessage requestMessage = new HttpRequestMessage(HttpMethod.Post, request);
|
HttpRequestMessage requestMessage = new HttpRequestMessage(HttpMethod.Post, request);
|
||||||
requestMessage.Content = new FormUrlEncodedContent(postData);
|
requestMessage.Content = new FormUrlEncodedContent(postData);
|
||||||
|
@ -163,7 +163,7 @@ namespace ArchiSteamFarm {
|
||||||
try {
|
try {
|
||||||
using (HttpClientHandler clientHandler = new HttpClientHandler { UseCookies = false }) {
|
using (HttpClientHandler clientHandler = new HttpClientHandler { UseCookies = false }) {
|
||||||
using (HttpClient client = new HttpClient(clientHandler)) {
|
using (HttpClient client = new HttpClient(clientHandler)) {
|
||||||
client.Timeout = TimeSpan.FromSeconds(10);
|
client.Timeout = TimeSpan.FromSeconds(30);
|
||||||
client.DefaultRequestHeaders.UserAgent.ParseAdd("ArchiSteamFarm/1.0");
|
client.DefaultRequestHeaders.UserAgent.ParseAdd("ArchiSteamFarm/1.0");
|
||||||
HttpRequestMessage requestMessage = new HttpRequestMessage(HttpMethod.Post, request);
|
HttpRequestMessage requestMessage = new HttpRequestMessage(HttpMethod.Post, request);
|
||||||
requestMessage.Content = new FormUrlEncodedContent(postData);
|
requestMessage.Content = new FormUrlEncodedContent(postData);
|
||||||
|
|
Loading…
Reference in a new issue