Skip to content

Commit

Permalink
Fix .NET SDK issue by specifying a namespace
Browse files Browse the repository at this point in the history
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 surrealdb#127:
Changes included:
-  Updated const strings for HTTP request headers from 'NS' to 'surrealdb-ns' and 'DB' to 'surrealdb-db'.
  • Loading branch information
NakanoMiku13 committed Oct 5, 2024
1 parent 12c1fca commit 0cd54eb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions SurrealDb.Net/Internals/Constants/HttpConstants.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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";
}

0 comments on commit 0cd54eb

Please sign in to comment.