Skip to content
This repository was archived by the owner on Dec 18, 2025. It is now read-only.

Comments

Ajax success code fix#100

Merged
kpal81xd merged 1 commit intomainfrom
ajax
Jul 16, 2025
Merged

Ajax success code fix#100
kpal81xd merged 1 commit intomainfrom
ajax

Conversation

@kpal81xd
Copy link
Contributor

  • Adjusts range of success codes for Ajax requests to include DELETE and PUT

@kpal81xd kpal81xd self-assigned this Jul 16, 2025
@kpal81xd kpal81xd requested a review from Copilot July 16, 2025 13:36
@kpal81xd kpal81xd added the bug Something isn't working label Jul 16, 2025
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 fixes the Ajax success code handling to properly support a broader range of HTTP success status codes beyond just 200 and 201. This change ensures that DELETE and PUT operations, which commonly return status codes like 202 (Accepted) and 204 (No Content), are correctly handled as successful responses.

  • Replaces hardcoded success status check with a comprehensive list of success codes
  • Adds support for 202 (Accepted) and 204 (No Content) status codes alongside existing 200 (OK) and 201 (Created)

@kpal81xd kpal81xd merged commit baae6a8 into main Jul 16, 2025
3 checks passed
@kpal81xd kpal81xd deleted the ajax branch July 16, 2025 13:37
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant