[PR #12] [MERGED] fix: get_saved_cards returns empty array #12

Closed
opened 2026-02-27 15:56:48 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/rersozlu/food402/pull/12
Author: @rersozlu
Created: 2/2/2026
Status: Merged
Merged: 2/2/2026
Merged by: @rersozlu

Base: masterHead: fix/get-saved-cards-empty-array


📝 Commits (1)

  • f22cafa fix: get_saved_cards returns empty array

📊 Changes

1 file changed (+12 additions, -17 deletions)

View changed files

📝 shared/api.ts (+12 -17)

📄 Description

Summary

  • Fix payment headers in createPaymentHeaders function to match working web request format
  • Add missing headers: referer, accept-language, x-session-id, x-personalization-id
  • Update header values: lowercase bearer in Authorization, full User-Agent, expanded x-features
  • Remove problematic headers: Origin, x-correlationid, pid, sid

Fixes #11

Test plan

  • Ran test script calling get_saved_cards endpoint
  • Verified cards are returned (2 cards matching account)
  • Build passes with no TypeScript errors

🤖 Generated with Claude Code


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/rersozlu/food402/pull/12 **Author:** [@rersozlu](https://github.com/rersozlu) **Created:** 2/2/2026 **Status:** ✅ Merged **Merged:** 2/2/2026 **Merged by:** [@rersozlu](https://github.com/rersozlu) **Base:** `master` ← **Head:** `fix/get-saved-cards-empty-array` --- ### 📝 Commits (1) - [`f22cafa`](https://github.com/rersozlu/food402/commit/f22cafa9365f446a3acfd3c5abf4498f38e82204) fix: get_saved_cards returns empty array ### 📊 Changes **1 file changed** (+12 additions, -17 deletions) <details> <summary>View changed files</summary> 📝 `shared/api.ts` (+12 -17) </details> ### 📄 Description ## Summary - Fix payment headers in `createPaymentHeaders` function to match working web request format - Add missing headers: `referer`, `accept-language`, `x-session-id`, `x-personalization-id` - Update header values: lowercase `bearer` in Authorization, full User-Agent, expanded `x-features` - Remove problematic headers: `Origin`, `x-correlationid`, `pid`, `sid` Fixes #11 ## Test plan - [x] Ran test script calling `get_saved_cards` endpoint - [x] Verified cards are returned (2 cards matching account) - [x] Build passes with no TypeScript errors 🤖 Generated with [Claude Code](https://claude.ai/code) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-02-27 15:56:48 +03:00
Sign in to join this conversation.
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/food402#12
No description provided.