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

feat(routing/http/server): improve ux of /ipns #596

Merged
merged 3 commits into from
Apr 5, 2024

Conversation

lidel
Copy link
Member

@lidel lidel commented Mar 27, 2024

  • Content-Disposition with meaningful file extension
  • default to application/vnd.ipfs.ipns-record when Accept is missing or includes */* wildcard.

- `Content-Disposition` with meaningful file extension
- default to application/vnd.ipfs.ipns-record when `Accept` is missing
@lidel lidel requested a review from a team as a code owner March 27, 2024 19:12
Copy link
Contributor

@aschmahmann aschmahmann left a comment

Choose a reason for hiding this comment

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

LGTM, although @hacdias has been spending more time in this code than I have 😅

routing/http/server/server.go Outdated Show resolved Hide resolved
Copy link

codecov bot commented Mar 27, 2024

Codecov Report

Attention: Patch coverage is 84.61538% with 2 lines in your changes are missing coverage. Please review.

Project coverage is 59.85%. Comparing base (b101ba0) to head (4c5650b).

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #596      +/-   ##
==========================================
+ Coverage   59.78%   59.85%   +0.06%     
==========================================
  Files         232      232              
  Lines       28124    28135      +11     
==========================================
+ Hits        16815    16839      +24     
+ Misses       9837     9822      -15     
- Partials     1472     1474       +2     
Files Coverage Δ
routing/http/server/server.go 70.54% <84.61%> (+0.86%) ⬆️

... and 15 files with indirect coverage changes

@lidel lidel mentioned this pull request Mar 27, 2024
11 tasks
Added support and test for wildcard value which is sent by every browser
Accept: text/plain,*/*"
on match, we default to default response type, the same way as
when Accept is missing
@hacdias hacdias merged commit 3a31820 into main Apr 5, 2024
14 checks passed
@hacdias hacdias deleted the default-to-ipns-record-response branch April 5, 2024 07:31
wenyue pushed a commit to wenyue/boxo that referenced this pull request Oct 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
Status: 🎉 Done
Development

Successfully merging this pull request may close these issues.

3 participants