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

[server] [merged] Return HTTP errors in JSON format if Accept: contains application/json #488

Closed
wants to merge 1 commit into from

Conversation

sundbry
Copy link
Contributor

@sundbry sundbry commented Oct 10, 2018

Note: Merged as bf701c8


Addresses issue #487 by returning JSON format error messages when in the request Accept: headers.

This does not affect existing client behavior as far as I can tell, from testing the /demo/index.html, it does not send Accept: application/json in the headers.

@jelmer
Copy link
Member

jelmer commented May 28, 2019

This seems reasonable; one comment inline about Accept header parsing.

@jelmer jelmer changed the title Return HTTP errors in JSON format if Accept: contains application/json [WIP] Return HTTP errors in JSON format if Accept: contains application/json Feb 15, 2020
@jelmer jelmer marked this pull request as draft October 10, 2020 20:24
@ix5
Copy link
Member

ix5 commented Feb 6, 2022

@sundbry would you mind rebasing and addressing the comment by jelmer?

@ix5 ix5 marked this pull request as ready for review February 10, 2022 20:24
Copy link
Member

@ix5 ix5 left a comment

Choose a reason for hiding this comment

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

(See inline)

isso/__init__.py Show resolved Hide resolved
@ix5
Copy link
Member

ix5 commented Feb 23, 2022

@sundbry this is a nice improvement. Please see inline comments and implement those slight tweaks when you find the time.

@jelmer
Copy link
Member

jelmer commented Feb 23, 2022 via email

@ix5 ix5 added server (Python) server code improvement Not a new feature, but makes Isso more pleasant to use labels May 25, 2022
@ix5 ix5 modified the milestones: 0.14, 0.13 May 25, 2022
@ix5 ix5 changed the title [WIP] Return HTTP errors in JSON format if Accept: contains application/json [server] Return HTTP errors in JSON format if Accept: contains application/json May 25, 2022
ix5 added a commit that referenced this pull request May 25, 2022
[server] Return HTTP errors in JSON format if Accept: contains application/json
@ix5
Copy link
Member

ix5 commented May 25, 2022

Merged, though I had to manually override some changes. (You sadly disabled push access for maintainers to your branch, @sundbry)

@ix5 ix5 closed this May 25, 2022
@ix5 ix5 changed the title [server] Return HTTP errors in JSON format if Accept: contains application/json [server] [merged] Return HTTP errors in JSON format if Accept: contains application/json May 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
improvement Not a new feature, but makes Isso more pleasant to use server (Python) server code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants