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

fix: add missing referer header #122

Merged
merged 1 commit into from
May 12, 2023
Merged

Conversation

Alkaar
Copy link
Owner

@Alkaar Alkaar commented May 12, 2023

The final booking post request now needs a referer header or else it fails with an Internal Server Error.

  • add referer header to post request

@Alkaar Alkaar added the fix A bug fix label May 12, 2023
@Alkaar Alkaar self-assigned this May 12, 2023
@@ -108,7 +108,8 @@ object ResyApi extends Logging {
.withHttpHeaders(
createHeaders(resyKeys) ++ Seq(
"Content-Type" -> "application/x-www-form-urlencoded",
"origin" -> "https://widgets.resy.com/"
"Origin" -> "https://widgets.resy.com",
"Referer" -> "https://widgets.resy.com/"
Copy link
Owner Author

@Alkaar Alkaar May 12, 2023

Choose a reason for hiding this comment

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

The extra / at the end of the Referer header is intentional to mirror how it works if you were to actually book the reservation normally.

@Alkaar Alkaar merged commit 571e754 into master May 12, 2023
@Alkaar Alkaar deleted the fix/add-missing-referer-header branch May 12, 2023 23:44
@Alkaar Alkaar linked an issue May 12, 2023 that may be closed by this pull request
@github-actions
Copy link

🚀 PR was released in v3.1.2 🚀

@github-actions github-actions bot added the released This issue/pull request has been released. label May 12, 2023
@Alkaar Alkaar linked an issue May 13, 2023 that may be closed by this pull request
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
fix A bug fix released This issue/pull request has been released.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Bot attemping to snipe over and over (again) Missed the shot with Book Token
1 participant