Skip to content

Conversation

@bosi95
Copy link
Contributor

@bosi95 bosi95 commented Feb 26, 2025

Checklist

  • I have read the coding guide.
  • My change requires a documentation update, and I have done it.
  • I have added tests to cover my changes.
  • I have filled out the description and linked the related issues.

Description

When uploading to any of the api endpoints the ACT relevant headers, i.e.: history address, are not added to the expose headers.
Adds the SwarmActHistoryAddressHeader to the AccessControlExposeHeaders, only if the Swarm-Act is set.

Open API Spec Version Changes (if applicable)

Motivation and Context (Optional)

Related Issue (Optional)

fixes #5023

Screenshots (if appropriate):

image

reference swarm.Address,
historyRootHash swarm.Address,
) (swarm.Address, error) {
) (swarm.Address, swarm.Address, error) {
Copy link
Member

Choose a reason for hiding this comment

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

Consider using named return values for clarity.
(encryptedRef, historyRef swarm.Address, err error)

@istae istae merged commit dab9aa1 into ethersphere:master Mar 6, 2025
15 checks passed
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.

ACT headers are not added to the expose headers

5 participants