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

proxy mode: don't rewrite xml for ajax requests. Support python 3.8 #563

Merged
merged 4 commits into from
Jun 8, 2020

Conversation

ikreymer
Copy link
Member

@ikreymer ikreymer commented Jun 8, 2020

Description

In proxy mode, don't inject header for ajax requests. Detect via Sec-Fetch-Mode header,
since not adding custom pywb headers

Motivation and Context

Fixes proxy mode replay of fulcrum sites, eg. https://www.fulcrum.org/epubs/t722h883s?locale=en#/6/2[Cover1]!/4/4/1:0

Minor fix / CI support for py3.8

Screenshots (if appropriate):

Types of changes

  • Replay fix (fixes a replay specific issue)
  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist:

  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have added or updated tests to cover my changes.
  • All new and existing tests passed.

- don't rewrite xml in proxy mode / html-insert only mode
- ajax: if sec-fetch-mode is set to non-navigate, also treat as 'ajax'
@ikreymer ikreymer merged commit 5e9b13e into develop Jun 8, 2020
ikreymer added a commit that referenced this pull request Jun 8, 2020
ikreymer added a commit that referenced this pull request Jun 8, 2020
@ikreymer ikreymer deleted the xml-no-rewrite branch September 1, 2022 01:50
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.

1 participant