Skip to content

Comments

Change the content type constant in README#48

Merged
spaze merged 1 commit intomainfrom
spaze/content-type-readme
Dec 9, 2025
Merged

Change the content type constant in README#48
spaze merged 1 commit intomainfrom
spaze/content-type-readme

Conversation

@spaze
Copy link
Owner

@spaze spaze commented Dec 9, 2025

Follow-up to #47

@spaze spaze self-assigned this Dec 9, 2025
Copilot AI review requested due to automatic review settings December 9, 2025 15:51
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR corrects a documentation error in the README example code. It updates a reference to a non-existent constant to use the correct constant from the SecurityTxtContentType class.

  • Updated the example code to use the correct constant for setting the Content-Type header
  • Changed from SecurityTxt::CONTENT_TYPE_HEADER (which doesn't exist) to SecurityTxtContentType::MEDIA_TYPE (which is the documented constant)

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@spaze spaze merged commit 38ac6f2 into main Dec 9, 2025
22 checks passed
@spaze spaze deleted the spaze/content-type-readme branch December 9, 2025 15:53
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