Skip to content

PB-1009: simplify ApiGatewayMiddleware. #482

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

Merged
merged 1 commit into from
Dec 5, 2024

Conversation

adk-swisstopo
Copy link
Member

@adk-swisstopo adk-swisstopo commented Dec 5, 2024

As per discussion in https://code.djangoproject.com/ticket/35971

Instead of copy/pasting process_request from the parent class, we can just drop the Geoadmin-Username header from request.META if Geoadmin-Authenticated is not true before calling process_request from the parent class.

As per discussion in https://code.djangoproject.com/ticket/35971

Instead of copy/pasting `process_request` from the parent class, we can just
drop the `Geoadmin-Username` header from `request.META` if `Geoadmin-Authenticated`
is not true before calling `process_request` from the parent class.
@adk-swisstopo adk-swisstopo force-pushed the fix-PB-1009-apigw-header branch from 8df4201 to 220487f Compare December 5, 2024 14:59
@adk-swisstopo adk-swisstopo changed the title PB-1009: simplify ApiGatewayMiddlware. PB-1009: simplify ApiGatewayMiddleware. Dec 5, 2024
Copy link
Contributor

@benschs benschs left a comment

Choose a reason for hiding this comment

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

Cool

@adk-swisstopo adk-swisstopo merged commit 728c281 into develop Dec 5, 2024
7 checks passed
@adk-swisstopo adk-swisstopo deleted the fix-PB-1009-apigw-header branch December 5, 2024 15:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants