Skip to content

Commit

Permalink
removed commented out code
Browse files Browse the repository at this point in the history
  • Loading branch information
daghovland committed Aug 21, 2024
1 parent 38b7d6b commit 13da0bf
Showing 1 changed file with 5 additions and 17 deletions.
22 changes: 5 additions & 17 deletions client/Boundaries/Boundaries/RdfoxApi.cs
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,7 @@ public static async Task DeleteDatalog(ConnectionSettings conn, string datalog)
{
Content = content
};

//var byteArray = Encoding.ASCII.GetBytes($"{conn.Username}:{conn.Password}");
//client.DefaultRequestHeaders.Authorization = new System.Net.Http.Headers.AuthenticationHeaderValue("Basic", Convert.ToBase64String(byteArray));


var response = await client.SendAsync(request);
response.EnsureSuccessStatusCode();
}
Expand All @@ -71,9 +68,7 @@ public static async Task LoadDatalog(ConnectionSettings conn, string datalog)
Content = content
};

//var byteArray = Encoding.ASCII.GetBytes($"{conn.Username}:{conn.Password}");
//client.DefaultRequestHeaders.Authorization = new System.Net.Http.Headers.AuthenticationHeaderValue("Basic", Convert.ToBase64String(byteArray));


var response = await client.SendAsync(request);
response.EnsureSuccessStatusCode();
}
Expand All @@ -96,9 +91,7 @@ public static async Task DeleteData(ConnectionSettings conn, string data)
Content = content
};

//var byteArray = Encoding.ASCII.GetBytes($"{conn.Username}:{conn.Password}");
//client.DefaultRequestHeaders.Authorization = new System.Net.Http.Headers.AuthenticationHeaderValue("Basic", Convert.ToBase64String(byteArray));


var response = await client.SendAsync(request);
response.EnsureSuccessStatusCode();
}
Expand All @@ -121,9 +114,7 @@ public static async Task LoadData(ConnectionSettings conn, string data)
Content = content
};

//var byteArray = Encoding.ASCII.GetBytes($"{conn.Username}:{conn.Password}");
//client.DefaultRequestHeaders.Authorization = new System.Net.Http.Headers.AuthenticationHeaderValue("Basic", Convert.ToBase64String(byteArray));


var response = await client.SendAsync(request);
response.EnsureSuccessStatusCode();
}
Expand All @@ -146,10 +137,7 @@ public static async Task<string> QuerySparql(ConnectionSettings conn, string que
{
Content = content
};

//var byteArray = Encoding.ASCII.GetBytes($"{conn.Username}:{conn.Password}");
//client.DefaultRequestHeaders.Authorization = new System.Net.Http.Headers.AuthenticationHeaderValue("Basic", Convert.ToBase64String(byteArray));


var response = await client.SendAsync(request);
if(!response.IsSuccessStatusCode)
throw new Exception(await response.Content.ReadAsStringAsync());
Expand Down

0 comments on commit 13da0bf

Please sign in to comment.