mirror of
https://github.com/HaschekSolutions/pictshare.git
synced 2026-04-25 23:15:51 +03:00
[PR #42] [MERGED] Adds 'Content-Type' header with 'application/json' value #144
Labels
No labels
Feature request
Feature request
bug
cant reproduce
enhancement
help wanted
pull-request
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/pictshare#144
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/HaschekSolutions/pictshare/pull/42
Author: @SpaiR
Created: 3/7/2018
Status: ✅ Merged
Merged: 3/8/2018
Merged by: @geek-at
Base:
master← Head:patch-1📝 Commits (1)
3a09daaAdds 'Content-Type' header📊 Changes
1 file changed (+2 additions, -0 deletions)
View changed files
📝
backend.php(+2 -0)📄 Description
This PR adds
Content-Typeheader withapplication/jsonvalue for allbackend.phpresponses.During integration of pictshare with my application I found, that all responses gotten from backend.php has
text/html; charset=utf-8value. This is not valid behavior since every return value encoded to JSON, so header is necessary. It's also necessary because some response converters looks into this value and as a result they are confused (my case).🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.