mirror of
https://github.com/wabbajack-tools/wabbajack.git
synced 2024-08-30 18:42:17 +00:00
Update Client.cs
This commit is contained in:
parent
e98be8b6f3
commit
e01eb31d1f
@ -22,16 +22,12 @@ namespace Wabbajack.Common.Http
|
||||
public async Task<HttpResponseMessage> PostAsync(string url, HttpContent content, HttpCompletionOption responseHeadersRead = HttpCompletionOption.ResponseHeadersRead)
|
||||
{
|
||||
var request = new HttpRequestMessage(HttpMethod.Post, url) {Content = content};
|
||||
foreach (var (k, v) in Headers)
|
||||
request.Headers.Add(k, v);
|
||||
return await SendAsync(request, responseHeadersRead);
|
||||
}
|
||||
|
||||
public async Task<HttpResponseMessage> PutAsync(string url, HttpContent content, HttpCompletionOption responseHeadersRead = HttpCompletionOption.ResponseHeadersRead)
|
||||
{
|
||||
var request = new HttpRequestMessage(HttpMethod.Put, url) {Content = content};
|
||||
foreach (var (k, v) in Headers)
|
||||
request.Headers.Add(k, v);
|
||||
return await SendAsync(request, responseHeadersRead);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user