Skip to content

Custom domain: increase header value length #10625

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
Aug 10, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions readthedocs/projects/migrations/0104_alter_httpheader_value.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# Generated by Django 4.2.4 on 2023-08-10 21:03

from django.db import migrations, models


class Migration(migrations.Migration):
dependencies = [
("projects", "0103_alter_emailhook_project_alter_webhook_project"),
]

operations = [
migrations.AlterField(
model_name="httpheader",
name="value",
field=models.CharField(max_length=4096),
),
]
2 changes: 1 addition & 1 deletion readthedocs/projects/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -1890,7 +1890,7 @@ class HTTPHeader(TimeStampedModel, models.Model):
max_length=128,
choices=HEADERS_CHOICES,
)
value = models.CharField(max_length=256)
value = models.CharField(max_length=4096)
only_if_secure_request = models.BooleanField(
help_text='Only set this header if the request is secure (HTTPS)',
)
Expand Down