Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for default accept header in http client #1283

Merged
merged 3 commits into from
May 10, 2024

Conversation

relu91
Copy link
Member

@relu91 relu91 commented May 9, 2024

As discussed in #854 this PR adds the default assumptions for the Accept header when interacting with a remote Thing. It also assumes that if the user provides the headers field his choice has preference over the default assumptions.

@egekorkan
Copy link
Member

This Thing has behavior implementation to test this:https://github.com/eclipse-thingweb/test-things/tree/main/things/calculator/http/express
Sadly issues with deployment on thingweb server at the moment.

Copy link
Member

@danielpeintner danielpeintner left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

One minor suggestion

packages/binding-http/src/http-client-impl.ts Outdated Show resolved Hide resolved
Co-authored-by: danielpeintner <daniel.peintner@gmail.com>
@relu91
Copy link
Member Author

relu91 commented May 10, 2024

Given @egekorkan's comment, I think we should merge this after someone has tried to interact with the mentioned Thing. I don't have time today so if anybody else wants to test these changes please feel free to report it here.

Copy link
Member

@egekorkan egekorkan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have just tested and it works as expected. Thanks!

@egekorkan egekorkan merged commit 9d3858c into eclipse-thingweb:master May 10, 2024
10 checks passed
@relu91 relu91 deleted the fix-854 branch May 10, 2024 16:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants