Skip to content
This repository has been archived by the owner on Dec 18, 2023. It is now read-only.

Setting the Accept header when opening the REST client #57

Merged

Conversation

StephenGilboy
Copy link

When using the REST client to call SurrealDB on OSX the response would always return a 405. It turns out the Warp HTTP lib that Surreal is using was rejecting the request when the Accept header was missing.

@ProphetLamb
Copy link
Collaborator

Interesting, thanks for the fix!
We actually had the Accept header early on, but there was an issue on the windows client with both accept and Content-Type headers. Let's see if someone complains,^^ If so we can add an Environment.OsVersion.Platform constraint. Thought I suspect the issue stemmed from somewhere else

(P.S. I was screwing around with the GitHub actions, so ill have to run the CI again)

@ProphetLamb ProphetLamb merged commit 9b218cf into Surreal-Net:master Sep 24, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants