From 0cd54eb0ff88f86f3ede3818ce30a7712248c1c5 Mon Sep 17 00:00:00 2001 From: NakanoMiku13 Date: Sat, 5 Oct 2024 13:28:46 -0600 Subject: [PATCH] Fix .NET SDK issue by specifying a namespace The SDK was encountering errors with various operations (e.g., QUERY, RAWQUERY, SET, UPSERT) that interact directly with the database. This commit fixes the issue for SurrealDB V2.X, but it is not compatible with V1.X. Fixes #127: Changes included: - Updated const strings for HTTP request headers from 'NS' to 'surrealdb-ns' and 'DB' to 'surrealdb-db'. --- SurrealDb.Net/Internals/Constants/HttpConstants.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/SurrealDb.Net/Internals/Constants/HttpConstants.cs b/SurrealDb.Net/Internals/Constants/HttpConstants.cs index 8709fdf4..5344bed8 100644 --- a/SurrealDb.Net/Internals/Constants/HttpConstants.cs +++ b/SurrealDb.Net/Internals/Constants/HttpConstants.cs @@ -3,6 +3,6 @@ internal static class HttpConstants { public const string ACCEPT_HEADER_NAME = "Accept"; - public const string NS_HEADER_NAME = "NS"; - public const string DB_HEADER_NAME = "DB"; + public const string NS_HEADER_NAME = "surreal-ns"; + public const string DB_HEADER_NAME = "surreal-db"; }