Skip to content

Fix Datastream pagination by safely resolving @iot.nextLink#32

Open
KinshukSS2 wants to merge 1 commit into
istSOS:mainfrom
KinshukSS2:fix/datastream-nextlink-pagination-010-clean
Open

Fix Datastream pagination by safely resolving @iot.nextLink#32
KinshukSS2 wants to merge 1 commit into
istSOS:mainfrom
KinshukSS2:fix/datastream-nextlink-pagination-010-clean

Conversation

@KinshukSS2
Copy link
Copy Markdown

summary of the changes made

replace split-based next-link reconstruction with URL parsing and safe normalization:

  • parse with new URL(nextLink, apiBaseUrl)
  • preserve pathname + search
  • resolve against trusted api_root

this keeps pagination intact for both absolute and relative next links

fix #31

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.

Datastream pagination rewrites @iot.nextLink unsafely

1 participant